plugin : KiiCorp.Cloud.Storage.Connector Namespace

KiiSocialNetworkConnector Class

Provides API that allows user to authenticate on KiiCloud through various social networks.

Syntax

public class KiiSocialNetworkConnector : UnityEngine.MonoBehaviour

Remarks

This class can be used after Kii.Initialize(string, string, Kii.Site).

Requirements

Namespace: KiiCorp.Cloud.Storage.Connector
Assembly: plugin (in plugin.dll)
Assembly Versions: 1.0.0.0

Members

See Also: Inherited members from UnityEngine.MonoBehaviour.

Public Constructors

Initializes a new instance of KiiSocialNetworkConnector.

Public Properties

DisplayArea UnityEngine.Rect . Display area of web page of social connector.

Public Methods

LogIn (Provider, KiiSocialCallback)
Login with the social network.

Member Details

KiiSocialNetworkConnector Constructor

Initializes a new instance of KiiSocialNetworkConnector.

Syntax

public KiiSocialNetworkConnector ()

Remarks

This constructor is called by UnityGameEngine. Do not use it from your application.

Requirements

Namespace: KiiCorp.Cloud.Storage.Connector
Assembly: plugin (in plugin.dll)
Assembly Versions: 1.0.0.0

DisplayArea Property

Display area of web page of social connector.

Syntax

public UnityEngine.Rect DisplayArea { get; set; }

Value

Display area.

Remarks

Web page of social connector is displayed as full screen, if applications do not set this field. DisplayArea is only effective for iOS environment. In Android environment, web page is shown as alert dialog.

Requirements

Namespace: KiiCorp.Cloud.Storage.Connector
Assembly: plugin (in plugin.dll)
Assembly Versions: 1.0.0.0

LogIn Method

Login with the social network.

Syntax

public void LogIn (Provider provider, KiiSocialCallback callback)

Parameters

provider
Social network to use to login KiiCloud.
callback
callback notifies events asynchronously. must not be null.

Exceptions

Type Reason
ArgumentException Exception is thrown when one or more arguments are invalid.
ArgumentNullException Exception is thrown when one or more arguments are null.
NotSupportedException Exception is thrown when the specified provider is not supported.

Remarks

If there is already logged in user, perform logout and login with credentials given by user.

Requirements

Namespace: KiiCorp.Cloud.Storage.Connector
Assembly: plugin (in plugin.dll)
Assembly Versions: 1.0.0.0