예제 #1
0
 public void Set(IOSLoginOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = AuthInterface.LoginApiLatest;
         Credentials  = other.Credentials;
         ScopeFlags   = other.ScopeFlags;
     }
 }
예제 #2
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);
        }