No, there is no way to do this as that function just returns a void.
If you look at native development too, there's no way to get that information on either platform due to privacy reasons (unless the device is jailbroken)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…