Beispiel #1
0
        public void OnAuthenticationError(LayerClient layerClient, LayerException e)
        {
            string error = "Failed to authenticate with Layer: " + e.Message;

            if (Log.IsLoggable(Log.ERROR))
            {
                Log.e(error, e);
            }
            if (mCallback != null)
            {
                mCallback.OnError(this, error);
            }
        }
 //Called when there was a problem authenticating
 //Common causes include a malformed identity token, missing parameters in the identity token,
 // missing
 //or incorrect nonce
 public void OnAuthenticationError(LayerClient layerClient, LayerException e)
 {
     Log.Verbose(TAG, "There was an error authenticating: " + e);
 }
Beispiel #3
0
 public void OnAuthenticationError(LayerClient client, LayerException e)
 {
     Log.Debug(nameof(MyAuthenticationListener), "There was an error authenticating");
 }
Beispiel #4
0
 public void OnConnectionError(LayerClient layerClient, LayerException e)
 {
 }
Beispiel #5
0
 public void OnAuthenticationError(LayerClient layerClient, LayerException e)
 {
 }
 //Called when there is an error establishing a connection. There is no need to re-establish
 // the connection again by calling layerClient.connect() - the SDK will handle re-connection
 // automatically. However, this callback can be used with conjunction with onConnectionConnected
 // to provide feedback to the user that messages cannot be sent/received (assuming there is an
 // authenticated user).
 public void OnConnectionError(LayerClient client, LayerException e)
 {
     Log.Verbose(TAG, "Error connecting to layer: " + e.ToString());
 }