Is there a function that checks kerning between two glyphs?

I know kerningForPair() exists, I’m wondering if there’s a function that will give me the kerning that will actually be applied between two glyphs, rather than me having to resolve exceptions myself manually.

You can use this:

kernValue = layer.nextKerningForLayer_direction_(otherLayer, 0)