public virtual unsafe global::Com.Microsoft.Identity.Common.Internal.Telemetry.Events.UiStartEvent PutUserAgent(global::Com.Microsoft.Identity.Common.Internal.UI.AuthorizationAgent userAgent)
        {
            const string __id = "putUserAgent.(Lcom/microsoft/identity/common/internal/ui/AuthorizationAgent;)Lcom/microsoft/identity/common/internal/telemetry/events/UiStartEvent;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((userAgent == null) ? IntPtr.Zero : ((global::Java.Lang.Object)userAgent).Handle);
                var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Microsoft.Identity.Common.Internal.Telemetry.Events.UiStartEvent> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
                global::System.GC.KeepAlive(userAgent);
            }
        }
Пример #2
0
        public static unsafe global::Android.Content.Intent CreateStartIntent(global::Android.Content.Context context, global::Android.Content.Intent authIntent, string requestUrl, string redirectUri, global::System.Collections.Generic.IDictionary <string, string> requestHeaders, global::Com.Microsoft.Identity.Common.Internal.UI.AuthorizationAgent authorizationAgent, bool webViewZoomEnabled, bool webViewZoomControlsEnabled)
        {
            const string __id = "createStartIntent.(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;Ljava/util/HashMap;Lcom/microsoft/identity/common/internal/ui/AuthorizationAgent;ZZ)Landroid/content/Intent;";
            IntPtr       native_requestUrl     = JNIEnv.NewString(requestUrl);
            IntPtr       native_redirectUri    = JNIEnv.NewString(redirectUri);
            IntPtr       native_requestHeaders = global::Android.Runtime.JavaDictionary <string, string> .ToLocalJniHandle(requestHeaders);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [8];
                __args [0] = new JniArgumentValue((context == null) ? IntPtr.Zero : ((global::Java.Lang.Object)context).Handle);
                __args [1] = new JniArgumentValue((authIntent == null) ? IntPtr.Zero : ((global::Java.Lang.Object)authIntent).Handle);
                __args [2] = new JniArgumentValue(native_requestUrl);
                __args [3] = new JniArgumentValue(native_redirectUri);
                __args [4] = new JniArgumentValue(native_requestHeaders);
                __args [5] = new JniArgumentValue((authorizationAgent == null) ? IntPtr.Zero : ((global::Java.Lang.Object)authorizationAgent).Handle);
                __args [6] = new JniArgumentValue(webViewZoomEnabled);
                __args [7] = new JniArgumentValue(webViewZoomControlsEnabled);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Android.Content.Intent> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
                JNIEnv.DeleteLocalRef(native_requestUrl);
                JNIEnv.DeleteLocalRef(native_redirectUri);
                JNIEnv.DeleteLocalRef(native_requestHeaders);
                global::System.GC.KeepAlive(context);
                global::System.GC.KeepAlive(authIntent);
                global::System.GC.KeepAlive(requestHeaders);
                global::System.GC.KeepAlive(authorizationAgent);
            }
        }