Example #1
0
 internal static Xamarin.CobrowseIO.RemoteControlState ToManagedEnum(
     this Xamarin.CobrowseIO.Session.RemoteControlState javaState)
 {
     if (javaState == Xamarin.CobrowseIO.Session.RemoteControlState.Off)
     {
         return(Xamarin.CobrowseIO.RemoteControlState.Off);
     }
     if (javaState == Xamarin.CobrowseIO.Session.RemoteControlState.Requested)
     {
         return(Xamarin.CobrowseIO.RemoteControlState.Requested);
     }
     if (javaState == Xamarin.CobrowseIO.Session.RemoteControlState.Rejected)
     {
         return(Xamarin.CobrowseIO.RemoteControlState.Rejected);
     }
     if (javaState == Xamarin.CobrowseIO.Session.RemoteControlState.On)
     {
         return(Xamarin.CobrowseIO.RemoteControlState.On);
     }
     return(default);
Example #2
0
 public void SetRemoteControl([GeneratedEnum] Xamarin.CobrowseIO.RemoteControlState state, CobrowseCallbackDelegate <Java.Lang.Error, Session> @delegate)
 {
     Xamarin.CobrowseIO.Session.RemoteControlState javaState = state.ToJavaEnum();
     this._SetRemoteControl(javaState, new CobrowseCallback <Java.Lang.Error, Session>(@delegate));
 }
Example #3
0
 public void SetRemoteControl([GeneratedEnum] Xamarin.CobrowseIO.RemoteControlState state, ICallback callback)
 {
     Xamarin.CobrowseIO.Session.RemoteControlState javaState = state.ToJavaEnum();
     this._SetRemoteControl(javaState, callback);
 }