Class ContextOptions
An object specifying conditions on the contexts that should be offered.
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public class ContextOptions : JsObject
Constructors
ContextOptions(ContextFilter[], double?, double?)
Creates a new instance of ContextOptions
Declaration
public ContextOptions(ContextFilter[] filters = null, double? maxSize = null, double? minSize = null)
Parameters
Type | Name | Description |
---|---|---|
Context |
filters | The set of filters to apply to the context suggestions. |
double? | maxSize | The maximum number of participants that a suggested context should ideally have. |
double? | minSize | The minimum number of participants that a suggested context should ideally have. |
Properties
Filters
The set of filters to apply to the context suggestions.
Declaration
public ContextFilter[] Filters { get; }
Property Value
Type | Description |
---|---|
Context |
MaxSize
The maximum number of participants that a suggested context should ideally have.
Declaration
public double? MaxSize { get; }
Property Value
Type | Description |
---|---|
double? |
MinSize
The minimum number of participants that a suggested context should ideally have.
Declaration
public double? MinSize { get; }
Property Value
Type | Description |
---|---|
double? |