Beispiel #1
0
        internal static Xamarin.CobrowseIO.Session.RemoteControlState ToJavaEnum(
            this Xamarin.CobrowseIO.RemoteControlState state)
        {
            switch (state)
            {
            case Xamarin.CobrowseIO.RemoteControlState.Off:
                return(Xamarin.CobrowseIO.Session.RemoteControlState.Off);

            case Xamarin.CobrowseIO.RemoteControlState.Requested:
                return(Xamarin.CobrowseIO.Session.RemoteControlState.Requested);

            case Xamarin.CobrowseIO.RemoteControlState.Rejected:
                return(Xamarin.CobrowseIO.Session.RemoteControlState.Rejected);

            case Xamarin.CobrowseIO.RemoteControlState.On:
                return(Xamarin.CobrowseIO.Session.RemoteControlState.On);

            default:
                return(default);
            }
        }
Beispiel #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));
 }
Beispiel #3
0
 public void SetRemoteControl([GeneratedEnum] Xamarin.CobrowseIO.RemoteControlState state, ICallback callback)
 {
     Xamarin.CobrowseIO.Session.RemoteControlState javaState = state.ToJavaEnum();
     this._SetRemoteControl(javaState, callback);
 }