docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InitializeOptions

    Defines the options desired when initializing the Friends service.

    Inheritance
    object
    InitializeOptions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Friends.Options
    Assembly: Unity.Services.Friends.dll
    Syntax
    public class InitializeOptions

    Methods

    WithEvents(bool)

    Defines whether or not to attach profile data to the member object

    Declaration
    public InitializeOptions WithEvents(bool withEvents)
    Parameters
    Type Name Description
    bool withEvents

    whether or not to use events to update lists

    Returns
    Type Description
    InitializeOptions

    The InitializeOptions with the updated events flag

    WithMemberPresence(bool)

    Defines whether or not to attach presence data to the member object

    Declaration
    public InitializeOptions WithMemberPresence(bool withPresence)
    Parameters
    Type Name Description
    bool withPresence

    Whether or not to attach presence data

    Returns
    Type Description
    InitializeOptions

    The InitializeOptions with the updated presence flag

    WithMemberProfile(bool)

    Defines whether or not to attach profile data to the member object

    Declaration
    public InitializeOptions WithMemberProfile(bool withProfile)
    Parameters
    Type Name Description
    bool withProfile

    Whether or not to attach profile data

    Returns
    Type Description
    InitializeOptions

    The InitializeOptions with the updated profile flag

    In This Article
    Back to top
    Copyright © 2024 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)