Beispiel #1
0
        internal static void OnLogin(IntPtr address)
        {
            OnLoginCallback   callback     = null;
            LoginCallbackInfo callbackInfo = null;

            if (Helper.TryGetAndRemoveCallback <OnLoginCallback, LoginCallbackInfoInternal, LoginCallbackInfo>(address, out callback, out callbackInfo))
            {
                callback(callbackInfo);
            }
        }
Beispiel #2
0
    public void loginSDK(OnLoginCallback callback)
    {
        this.mLoginCallback = callback;


        IBridge bridge = DBOSManager.getDBOSManager().getBridge();

        //bridge.setLoginMsg("");
        bridge.login();
    }
Beispiel #3
0
        /// <summary>
        /// Login/Authenticate given a valid set of external auth credentials.
        /// </summary>
        /// <param name="options">structure containing the external account credentials and type to use during the login operation</param>
        /// <param name="clientData">arbitrary data that is passed back to you in the CompletionDelegate</param>
        /// <param name="completionDelegate">a callback that is fired when the login operation completes, either successfully or in error</param>
        public void Login(LoginOptions options, object clientData, OnLoginCallback completionDelegate)
        {
            var optionsInternal = Helper.CopyProperties <LoginOptionsInternal>(options);

            var completionDelegateInternal = new OnLoginCallbackInternal(OnLogin);
            var clientDataAddress          = IntPtr.Zero;

            Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal);

            EOS_Connect_Login(InnerHandle, ref optionsInternal, clientDataAddress, completionDelegateInternal);
            Helper.TryMarshalDispose(ref optionsInternal);
        }
Beispiel #4
0
        public void Login(IOSLoginOptions options, object clientData, OnLoginCallback completionDelegate)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <IOSLoginOptionsInternal, IOSLoginOptions>(ref optionsAddress, options);

            var clientDataAddress = System.IntPtr.Zero;

            var completionDelegateInternal = new OnLoginCallbackInternal(OnLoginCallbackInternalImplementation);

            Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal);

            EOS_Auth_Login(InnerHandle, optionsAddress, clientDataAddress, completionDelegateInternal);

            Helper.TryMarshalDispose(ref optionsAddress);
        }