Class Community
Contains functions and properties related to the gaming community.
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public class Community : JsObject
Constructors
Community()
Construct an instance of Community
Declaration
public Community()
Methods
CanFollowOfficialPageAsync()
Checks if a user can follow the official game page. Exceptions: INVALID_OPERATION
Declaration
public WebTask<bool> CanFollowOfficialPageAsync()
Returns
| Type | Description |
|---|---|
| WebTask<bool> | A WebTask<T> containing a boolean value that is true if the user can follow the official game page, and false otherwise. |
CanJoinOfficialGroupAsync()
Checks if a user can join the official game group. Exceptions: INVALID_OPERATION
Declaration
public WebTask<bool> CanJoinOfficialGroupAsync()
Returns
| Type | Description |
|---|---|
| WebTask<bool> | A WebTask<T> containing a boolean value that is true if the user can join the official game group, and false otherwise. |
FollowOfficialPageAsync()
Renders an overlay with a call to action to the follow official page. Exceptions: NETWORK_FAILURE, INVALID_OPERATION, PAGE_NOT_LINKED
Declaration
public WebTask FollowOfficialPageAsync()
Returns
| Type | Description |
|---|---|
| WebTask | A WebTask that resolves when the user has successfully followed the official game page. |
JoinOfficialGroupAsync()
Renders an overlay with a call to action to join official group. Exceptions: NETWORK_FAILURE, INVALID_OPERATION, GROUP_NOT_LINKED
Declaration
public WebTask JoinOfficialGroupAsync()
Returns
| Type | Description |
|---|---|
| WebTask | A WebTask that resolves when the user has successfully joined the official game group. |