C# Class Xamarin.Auth.Authenticator.Authenticator

Datei anzeigen Open project: nachocove/Xamarin.Auth

Public Methods

Method Description
Authenticator ( ) : System

Initializes a new instance of the Xamarin.Auth.Authenticator class.

BeginInvokeOnUIThread ( System.Action action ) : void
GetUI ( ) : UIKit.UIViewController

Gets the UI for this authenticator.

GetUI ( Android.Content.Context context ) : UIKit.UIViewController
OnCancelled ( ) : void

Implementations must call this function when they have cancelled the operation.

OnError ( Exception exception ) : void

Implementations must call this function when they have failed to authenticate.

OnError ( string message ) : void

Implementations must call this function when they have failed to authenticate.

OnSucceeded ( Account account ) : void

Implementations must call this function when they have successfully authenticated.

OnSucceeded ( string username, string>.IDictionary accountProperties ) : void

Implementations must call this function when they have successfully authenticated.

Protected Methods

Method Description
GetPlatformUI ( ) : UIKit.UIViewController

Gets the UI for this authenticator.

GetPlatformUI ( Android.Content.Context context ) : UIKit.UIViewController

Method Details

Authenticator() public method

Initializes a new instance of the Xamarin.Auth.Authenticator class.
public Authenticator ( ) : System
return System

BeginInvokeOnUIThread() public method

public BeginInvokeOnUIThread ( System.Action action ) : void
action System.Action
return void

GetPlatformUI() protected abstract method

Gets the UI for this authenticator.
protected abstract GetPlatformUI ( ) : UIKit.UIViewController
return UIKit.UIViewController

GetPlatformUI() protected abstract method

protected abstract GetPlatformUI ( Android.Content.Context context ) : UIKit.UIViewController
context Android.Content.Context
return UIKit.UIViewController

GetUI() public method

Gets the UI for this authenticator.
public GetUI ( ) : UIKit.UIViewController
return UIKit.UIViewController

GetUI() public method

public GetUI ( Android.Content.Context context ) : UIKit.UIViewController
context Android.Content.Context
return UIKit.UIViewController

OnCancelled() public method

Implementations must call this function when they have cancelled the operation.
public OnCancelled ( ) : void
return void

OnError() public method

Implementations must call this function when they have failed to authenticate.
public OnError ( Exception exception ) : void
exception System.Exception /// The reason that this authentication has failed. ///
return void

OnError() public method

Implementations must call this function when they have failed to authenticate.
public OnError ( string message ) : void
message string /// The reason that this authentication has failed. ///
return void

OnSucceeded() public method

Implementations must call this function when they have successfully authenticated.
public OnSucceeded ( Account account ) : void
account Account /// The authenticated account. ///
return void

OnSucceeded() public method

Implementations must call this function when they have successfully authenticated.
public OnSucceeded ( string username, string>.IDictionary accountProperties ) : void
username string /// User name of the account. ///
accountProperties string>.IDictionary /// Additional data, such as access tokens, that need to be stored with the account. This /// information is secured. ///
return void