C# Class Meteor.Accounts

Contains all the methods used to create and manage user accounts.
显示文件 Open project: hiddenswitch/Meteor-Unity

Public Properties

Property Type Description
FacebookScope string
GuestEmailDomain string

Public Methods

Method Description
CreateAndLoginWith ( string email, string username, string password ) : Method

Creates a user. This function logs in as the newly created user on successful completion. You must pass password and at least one of username or email — enough information for the user to be able to log in again later. If there are existing users with a username or email only differing in case, createUser will fail.

LoginAsGuest ( ) : Coroutine

Login as a guest. Use inside an IEnumerator/Coroutine.

LoginWith ( string username, string password ) : Method

Log in with a specified username and password. See the method documentation for correctly executing methods. Meteor.Method`1.

LoginWithFacebook ( ) : Coroutine

Logs in with Facebook. Requires the Facebook SDK and the compile preprocessor symbol FACEBOOK defined.

LoginWithGoogle ( ) : Coroutine

Logs in with a Google account. Currently not supported.

LoginWithToken ( ) : Method

Log in with a saved token.

Private Methods

Method Description
Accounts ( ) : System
HandleOnLogin ( Error error, LoginResult response ) : void
LoginAsGuestCoroutine ( ) : IEnumerator
LoginWithFacebookCoroutine ( ) : IEnumerator
RegisterForPush ( ) : IEnumerator

Method Details

CreateAndLoginWith() public static method

Creates a user. This function logs in as the newly created user on successful completion. You must pass password and at least one of username or email — enough information for the user to be able to log in again later. If there are existing users with a username or email only differing in case, createUser will fail.
public static CreateAndLoginWith ( string email, string username, string password ) : Method
email string Email. Currently unsupported.
username string Username.
password string Password.
return Method

LoginAsGuest() public static method

Login as a guest. Use inside an IEnumerator/Coroutine.
public static LoginAsGuest ( ) : Coroutine
return UnityEngine.Coroutine

LoginWith() public static method

Log in with a specified username and password. See the method documentation for correctly executing methods. Meteor.Method`1.
public static LoginWith ( string username, string password ) : Method
username string Username.
password string Password.
return Method

LoginWithFacebook() public static method

Logs in with Facebook. Requires the Facebook SDK and the compile preprocessor symbol FACEBOOK defined.
public static LoginWithFacebook ( ) : Coroutine
return UnityEngine.Coroutine

LoginWithGoogle() public static method

Logs in with a Google account. Currently not supported.
public static LoginWithGoogle ( ) : Coroutine
return UnityEngine.Coroutine

LoginWithToken() public static method

Log in with a saved token.
public static LoginWithToken ( ) : Method
return Method

Property Details

FacebookScope public_oe static_oe property

The permissions requested by a Facebook login.
public static string FacebookScope
return string

GuestEmailDomain public_oe static_oe property

The email domain used for guest accounts.
public static string GuestEmailDomain
return string