docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ContextOptions

    An object specifying conditions on the contexts that should be offered.

    Inheritance
    object
    JsObject
    ContextOptions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Meta.InstantGames.v8
    Assembly: Unity.Meta.InstantGames.Sdk.v8.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
    ContextFilter[] 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
    ContextFilter[]

    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?
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)