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