/** * Authenticates with the AuthenticationProvider and Layer, returning asynchronous results to * the provided callback. * * @param credentials Credentials associated with the current AuthenticationProvider. * @param callback Callback to receive authentication results. */ public static void Authenticate(Object credentials, IAuthenticationProviderCallback callback) { LayerClient client = GetLayerClient(); if (client == null) { return; } String layerAppId = GetLayerAppId(); if (layerAppId == null) { return; } GetAuthenticationProvider() .SetCredentials(credentials) .SetCallback(callback); client.Authenticate(); }
public IAuthenticationProvider <Credentials> SetCallback(IAuthenticationProviderCallback <Credentials> callback) { mCallback = callback; return(this); }
public IAuthenticationProvider SetCallback(IAuthenticationProviderCallback callback) { return(this.SetCallback(callback as IAuthenticationProviderCallback <Credentials>)); }