Exemplo n.º 1
0
        public unsafe global::Android.OS.Bundle CommunicateToBroker(global::Com.Microsoft.Identity.Common.Internal.Broker.Ipc.BrokerOperationBundle p0)
        {
            if (id_communicateToBroker_Lcom_microsoft_identity_common_internal_broker_ipc_BrokerOperationBundle_ == IntPtr.Zero)
            {
                id_communicateToBroker_Lcom_microsoft_identity_common_internal_broker_ipc_BrokerOperationBundle_ = JNIEnv.GetMethodID(class_ref, "communicateToBroker", "(Lcom/microsoft/identity/common/internal/broker/ipc/BrokerOperationBundle;)Landroid/os/Bundle;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            var __ret = global::Java.Lang.Object.GetObject <global::Android.OS.Bundle> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_communicateToBroker_Lcom_microsoft_identity_common_internal_broker_ipc_BrokerOperationBundle_, __args), JniHandleOwnership.TransferLocalRef);

            return(__ret);
        }
        public virtual unsafe global::Android.OS.Bundle CommunicateToBroker(global::Com.Microsoft.Identity.Common.Internal.Broker.Ipc.BrokerOperationBundle brokerOperationBundle)
        {
            const string __id = "communicateToBroker.(Lcom/microsoft/identity/common/internal/broker/ipc/BrokerOperationBundle;)Landroid/os/Bundle;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((brokerOperationBundle == null) ? IntPtr.Zero : ((global::Java.Lang.Object)brokerOperationBundle).Handle);
                var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Android.OS.Bundle> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
                global::System.GC.KeepAlive(brokerOperationBundle);
            }
        }