Class InviteSection
Represents a section in the Invite dialog that contains suggested matches. The sections display in the order they're included in the array, and the last section contains as many results as possible.
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public class InviteSection : JsObject
Constructors
InviteSection()
Construct an instance of InviteSection
Declaration
public InviteSection()
InviteSection(InviteSectionType, double?)
Creates a new instance of InviteSection
Declaration
public InviteSection(InviteSectionType sectionType, double? maxResults = null)
Parameters
| Type | Name | Description |
|---|---|---|
| InviteSectionType | sectionType | The type of section to include in the Invite dialog. |
| double? | maxResults | An optional maximum number of results to include in the section. This can be no higher than 10. This value is disregarded for the last section, which contains as many results as possible. If not included, the default maximum number of results for that section type is used. |
Properties
MaxResults
An optional maximum number of results to include in the section. This can be no higher than 10. This value is disregarded for the last section, which contains as many results as possible. If not included, the default maximum number of results for that section type is used.
Declaration
public double? MaxResults { get; }
Property Value
| Type | Description |
|---|---|
| double? |
SectionType
The type of section to include in the Invite dialog.
Declaration
public InviteSectionType SectionType { get; }
Property Value
| Type | Description |
|---|---|
| InviteSectionType |