public Task <HeadphoneStateResponse> GetHeadphoneStateAsync() { return(HeadphoneState.AsAsync <HeadphoneStateResponse>()); }
/// <summary> /// This fence is in the <see cref="FenceState.State.True"/> state when the headphones are in the specified state. /// </summary> /// <param name="headphoneState">Headphone state</param> /// <returns></returns> public static AwarenessFence During(HeadphoneState headphoneState) { return(new AwarenessFence(HeadphoneFenceClass.AJCCallStaticOnceAJO("during", (int)headphoneState))); }