public Task <HeadphoneStateResponse> GetHeadphoneStateAsync()
 {
     return(HeadphoneState.AsAsync <HeadphoneStateResponse>());
 }
Esempio n. 2
0
 /// <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)));
 }