public BadgeElement (UIImage badgeImage, string cellText, NSAction tapped) : base (cellText) { if (badgeImage == null) throw new ArgumentNullException ("badgeImage"); image = badgeImage; if (tapped != null) Tapped += tapped; }
public void ScheduleDrawable(global::Android.Graphics.Drawables.Drawable who, global::System.Action what, long when) { }
public abstract void SwitchToInstagram(global::System.Action onComplete);
public void StartInstagram(string[] parameters, global::System.Action onComplete) { YarnSystem.DialogueManager.SwitchToInstagram(onComplete); }
public void CLIENT_API_NATIVE_api_test(global::System.String uid, global::System.Action <global::Shared.Protocol.ErrCode> callback) { this.ApiTest(uid, callback); }
public static void CreateMyComponent_0 <TItem>(global::Microsoft.AspNetCore.Blazor.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, global::System.Action <TItem> __arg1) { builder.OpenComponent <global::Test.MyComponent <TItem> >(seq); builder.AddAttribute(__seq0, "Item", __arg0); builder.AddAttribute(__seq1, "ItemChanged", __arg1); builder.CloseComponent(); }
public virtual void PresentTextInputController(global::System.Func <NSString, NSArray> suggestionsHandler, WKTextInputMode inputMode, [BlockProxy(typeof(ObjCRuntime.Trampolines.NIDActionArity1V208))] global::System.Action <NSArray> completion) { throw new PlatformNotSupportedException(Constants.WatchKitRemoved); }
public static bool OpenParentApplication(NSDictionary userInfo, [BlockProxy(typeof(ObjCRuntime.Trampolines.NIDActionArity2V69))] global::System.Action <NSDictionary, NSError> reply) { throw new PlatformNotSupportedException(Constants.WatchKitRemoved); }
public static Action <TContext> Create(global::System.Action <TContext> action) { return(new Action <TContext>(action)); }
public async Task <RegisterClientReq.Callback> RegisterClientAsync(global::System.UInt64 hostId, global::System.String hostName, global::System.Action <global::Fenix.Common.DefaultErrCode, global::Fenix.HostInfo> callback = null) { var t = new TaskCompletionSource <RegisterClientReq.Callback>(); var toHostId = Global.IdManager.GetHostIdByActorId(this.toActorId, this.isClient); if (this.FromHostId == toHostId) { global::System.Action <global::Fenix.Common.DefaultErrCode, global::Fenix.HostInfo> _cb = (code, arg1) => { var cbMsg = new RegisterClientReq.Callback(); cbMsg.code = code; cbMsg.arg1 = arg1; callback?.Invoke(cbMsg.code, cbMsg.arg1); t.TrySetResult(cbMsg); }; var protoCode = OpCode.REGISTER_CLIENT_REQ; if (protoCode < OpCode.CALL_ACTOR_METHOD) { var peer = Global.NetManager.GetPeerById(this.FromHostId, this.NetType); var context = new RpcContext(null, peer); Global.Host.CallMethodWithParams(protoCode, new object[] { hostId, hostName, _cb, context }); } else { Global.Host.GetActor(this.toActorId).CallMethodWithParams(protoCode, new object[] { hostId, hostName, _cb }); } } else { Action <RegisterClientReq.Callback> _cb = (cbMsg) => { callback?.Invoke(cbMsg.code, cbMsg.arg1); t.TrySetResult(cbMsg); }; await Task.Run(() => { var msg = new RegisterClientReq() { hostId = hostId, hostName = hostName }; var cb = new Action <byte[]>((cbData) => { var cbMsg = cbData == null ? new RegisterClientReq.Callback() : global::Fenix.Common.Utils.RpcUtil.Deserialize <RegisterClientReq.Callback>(cbData); _cb?.Invoke(cbMsg); }); this.CallRemoteMethod(OpCode.REGISTER_CLIENT_REQ, msg, cb); }); } return(await t.Task); }
public void RemoveClientActor(global::System.UInt64 actorId, global::Fenix.Common.DisconnectReason reason, global::System.Action <global::Fenix.Common.DefaultErrCode> callback) { var toHostId = Global.IdManager.GetHostIdByActorId(this.toActorId, this.isClient); if (this.FromHostId == toHostId) { var protoCode = OpCode.REMOVE_CLIENT_ACTOR_REQ; if (protoCode < OpCode.CALL_ACTOR_METHOD) { var peer = Global.NetManager.GetPeerById(this.FromHostId, this.NetType); var context = new RpcContext(null, peer); Global.Host.CallMethodWithParams(protoCode, new object[] { actorId, reason, callback, context }); } else { Global.Host.GetActor(this.toActorId).CallMethodWithParams(protoCode, new object[] { actorId, reason, callback }); } return; } Task.Run(() => { var msg = new RemoveClientActorReq() { actorId = actorId, reason = reason }; var cb = new Action <byte[]>((cbData) => { var cbMsg = cbData == null?new RemoveClientActorReq.Callback():global::Fenix.Common.Utils.RpcUtil.Deserialize <RemoveClientActorReq.Callback>(cbData); callback?.Invoke(cbMsg.code); }); this.CallRemoteMethod(OpCode.REMOVE_CLIENT_ACTOR_REQ, msg, cb); }); }
public ChabuXmitterStartup(AbortMessage abortMessage, Runnable xmitRequestListener, Setup setup, Runnable startupCompletedListener) : base(abortMessage, xmitRequestListener) { actionsSetupRun = new List <LoopCtrlAction> { xmitAction_RemainingXmitBuf, xmitAction_EvalStartup, xmitAction_EvalAbort, xmitAction_EvalAccept, xmitAction_End, }; this.setup = setup; this.startupCompletedListener = startupCompletedListener; xmitBuf.order(ByteOrder.BIG_ENDIAN); xmitBuf.clear().limit(0); processXmitSetup(); }
public void SERVER_ONLY_NATIVE_find_match(global::System.String uid, global::System.Action <global::Shared.Protocol.ErrCode, global::Server.DataModel.Account> callback) { this.FindMatch(uid, callback); }
public void SERVER_API_NATIVE_join_match(global::System.String uid, global::System.Int32 match_type, global::System.Action <global::Shared.Protocol.ErrCode> callback) { this.JoinMatch(uid, match_type, callback); }
private Action(global::System.Action <TContext> action) { this.action = action; }
public static void RemoveEventHandler <T>(global::System.Action <global::System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod, T handler) { }
public abstract void Foo( pb::IRpcController controller, global::Google.ProtocolBuffers.TestProtos.NoGenericService.TestMessage request, global::System.Action <global::Google.ProtocolBuffers.TestProtos.NoGenericService.TestMessage> done);
public virtual void PresentTextInputController(string[] suggestions, WKTextInputMode inputMode, global::System.Action <NSArray> completion) { throw new PlatformNotSupportedException(Constants.WatchKitRemoved); }
public CallbackChainRegistration(global::System.Action unregistrationLogic) { _unregistrationLogic = unregistrationLogic; }
public unsafe static void GetConsumerMessagesForConversationWithRequest(EngagementHistoryRequest request, [BlockProxy(typeof(ObjCRuntime.Trampolines.NIDActionArity1V0))] global::System.Action <NSArray> completion, [BlockProxy(typeof(ObjCRuntime.Trampolines.NIDActionArity1V1))] global::System.Action <NSError> failure) { if (request == null) { throw new ArgumentNullException("request"); } if (completion == null) { throw new ArgumentNullException("completion"); } if (failure == null) { throw new ArgumentNullException("failure"); } BlockLiteral *block_ptr_completion; BlockLiteral block_completion; block_completion = new BlockLiteral(); block_ptr_completion = &block_completion; block_completion.SetupBlockUnsafe(Trampolines.SDActionArity1V0.Handler, completion); BlockLiteral *block_ptr_failure; BlockLiteral block_failure; block_failure = new BlockLiteral(); block_ptr_failure = &block_failure; block_failure.SetupBlockUnsafe(Trampolines.SDActionArity1V1.Handler, failure); global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(class_ptr, Selector.GetHandle("getConsumerMessagesForConversationWithRequest:completion:failure:"), request.Handle, (IntPtr)block_ptr_completion, (IntPtr)block_ptr_failure); block_ptr_completion->CleanupBlock(); block_ptr_failure->CleanupBlock(); }
public unsafe virtual void DidReceiveNotificationResponse(NSObject center, NSObject response, [BlockProxy(typeof(ObjCRuntime.Trampolines.NIDAction))] global::System.Action completionHandler) { throw new You_Should_Not_Call_base_In_This_Method(); }
public void UnscheduleDrawable(global::Android.Graphics.Drawables.Drawable who, global::System.Action what) { }
public unsafe virtual void WillPresentNotification(NSObject center, NSObject notification, [BlockProxy(typeof(ObjCRuntime.Trampolines.NIDActionArity1V0))] global::System.Action <global::System.nuint> completionHandler) { throw new You_Should_Not_Call_base_In_This_Method(); }
public async Task <__Client__Avatar__ApiTestNtf.Callback> client_api_test_async(global::System.String uid, global::System.Action <Shared.Protocol.ErrCode> callback = null) { var t = new TaskCompletionSource <__Client__Avatar__ApiTestNtf.Callback>(); var toHostId = Global.IdManager.GetHostIdByActorId(this.toActorId, this.isClient); if (this.FromHostId == toHostId) { global::System.Action <Shared.Protocol.ErrCode> _cb = (code) => { var cbMsg = new __Client__Avatar__ApiTestNtf.Callback(); cbMsg.code = code; callback?.Invoke(cbMsg.code); t.TrySetResult(cbMsg); }; var protoCode = ProtocolCode.__CLIENT__AVATAR__API_TEST_NTF; if (protoCode < OpCode.CALL_ACTOR_METHOD) { var peer = Global.NetManager.GetPeerById(this.FromHostId, this.NetType); var context = new RpcContext(null, peer); Global.Host.CallMethodWithParams(protoCode, new object[] { uid, _cb, context }); } else { Global.Host.GetActor(this.toActorId).CallMethodWithParams(protoCode, new object[] { uid, _cb }); } } else { Action <__Client__Avatar__ApiTestNtf.Callback> _cb = (cbMsg) => { callback?.Invoke(cbMsg.code); t.TrySetResult(cbMsg); }; await Task.Run(() => { var msg = new __Client__Avatar__ApiTestNtf() { uid = uid }; var cb = new Action <byte[]>((cbData) => { var cbMsg = cbData == null ? new __Client__Avatar__ApiTestNtf.Callback() : global::Fenix.Common.Utils.RpcUtil.Deserialize <__Client__Avatar__ApiTestNtf.Callback>(cbData); _cb?.Invoke(cbMsg); }); this.CallRemoteMethod(ProtocolCode.__CLIENT__AVATAR__API_TEST_NTF, msg, cb); }); } return(await t.Task); }
public unsafe static void WillPresentNotification(this IOSUserNotificationCenterDelegate This, NSObject center, NSObject notification, [BlockProxy(typeof(ObjCRuntime.Trampolines.NIDActionArity1V0))] global::System.Action <global::System.nuint> completionHandler) { if (center == null) { throw new ArgumentNullException("center"); } if (notification == null) { throw new ArgumentNullException("notification"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } BlockLiteral *block_ptr_completionHandler; BlockLiteral block_completionHandler; block_completionHandler = new BlockLiteral(); block_ptr_completionHandler = &block_completionHandler; block_completionHandler.SetupBlock(Trampolines.SDActionArity1V0.Handler, completionHandler); global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("userNotificationCenter:willPresentNotification:withCompletionHandler:"), center.Handle, notification.Handle, (IntPtr)block_ptr_completionHandler); block_ptr_completionHandler->CleanupBlock(); }
public static void CreateTablaGenerica_2 <T>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.Collections.Generic.List <global::System.String[]> __arg0, int __seq1, global::System.Boolean __arg1, int __seq2, global::SurcosBlazor.Client.Shared.TablaGenerica <T> .ConsultarApi __arg2, int __seq3, global::System.Boolean __arg3, int __seq4, global::Microsoft.AspNetCore.Components.EventCallback <T> __arg4, int __seq5, global::System.Boolean __arg5, int __seq6, global::Microsoft.AspNetCore.Components.EventCallback __arg6, int __seq7, global::Microsoft.AspNetCore.Components.RenderFragment __arg7, int __seq8, global::System.Action <global::SurcosBlazor.Client.Shared.TablaGenerica <T> > __arg8) { __builder.OpenComponent <global::SurcosBlazor.Client.Shared.TablaGenerica <T> >(seq); __builder.AddAttribute(__seq0, "elementosAmostrar", __arg0); __builder.AddAttribute(__seq1, "acciones", __arg1); __builder.AddAttribute(__seq2, "consultaApi", __arg2); __builder.AddAttribute(__seq3, "editar", __arg3); __builder.AddAttribute(__seq4, "selectTitem", __arg4); __builder.AddAttribute(__seq5, "eliminar", __arg5); __builder.AddAttribute(__seq6, "eliminarFunc", __arg6); __builder.AddAttribute(__seq7, "modalContentEditar", __arg7); __builder.AddComponentReferenceCapture(__seq8, (__value) => { __arg8((global::SurcosBlazor.Client.Shared.TablaGenerica <T>)__value); }); __builder.CloseComponent(); }
public unsafe static void DidReceiveNotificationResponse(this IOSUserNotificationCenterDelegate This, NSObject center, NSObject response, [BlockProxy(typeof(ObjCRuntime.Trampolines.NIDAction))] global::System.Action completionHandler) { if (center == null) { throw new ArgumentNullException("center"); } if (response == null) { throw new ArgumentNullException("response"); } if (completionHandler == null) { throw new ArgumentNullException("completionHandler"); } BlockLiteral *block_ptr_completionHandler; BlockLiteral block_completionHandler; block_completionHandler = new BlockLiteral(); block_ptr_completionHandler = &block_completionHandler; block_completionHandler.SetupBlock(Trampolines.SDAction.Handler, completionHandler); global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:"), center.Handle, response.Handle, (IntPtr)block_ptr_completionHandler); block_ptr_completionHandler->CleanupBlock(); }
public static void CreateMyComponent_0 <TItem>(global::Microsoft.AspNetCore.Blazor.RenderTree.RenderTreeBuilder builder, int seq, int __seq0, TItem __arg0, int __seq1, global::System.Action <global::Test.MyComponent <TItem> > __arg1) { builder.OpenComponent <global::Test.MyComponent <TItem> >(seq); builder.AddAttribute(__seq0, "Item", __arg0); builder.AddComponentReferenceCapture(__seq1, (__value) => { __arg1((global::Test.MyComponent <TItem>)__value); }); builder.CloseComponent(); }
public global::Android.Views.ViewPropertyAnimator WithEndAction(global::System.Action runnable) { return(default(global::Android.Views.ViewPropertyAnimator)); }
private void Dismiss(UIImagePickerController picker, NSAction onDismiss) { if (viewController == null) { onDismiss(); tcs = new TaskCompletionSource<MediaFile>(); } else { if (Popover != null) { Popover.Dismiss(animated: true); Popover.Dispose(); Popover = null; onDismiss(); } else { picker.DismissViewController(true, onDismiss); picker.Dispose(); } } }
public SingleEventNotifierFromTwoSources(Runnable listener) { this.listener = listener; }
private void Dismiss(UIImagePickerController picker, NSAction onDismiss) { if (this.viewController == null) { onDismiss(); tcs = new TaskCompletionSource<MediaFile>(); } else { NSNotificationCenter.DefaultCenter.RemoveObserver(this.observer); UIDevice.CurrentDevice.EndGeneratingDeviceOrientationNotifications(); this.observer.Dispose(); if (Popover != null) { Popover.Dismiss(animated: true); Popover.Dispose(); Popover = null; onDismiss(); } else { picker.DismissViewController(true, onDismiss); picker.Dispose(); } } }
public void WaitForIdle(global::System.Action recipient) { }