v1.0.0
Latest
2020.3+

Class InitializeOptions

Defines the options desired when initializing the Friends service.

Inheritance
InitializeOptions
Namespace: Unity.Services.Friends.Options
Syntax
public class InitializeOptions

Methods

WithEvents(Boolean)

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

Declaration
public InitializeOptions WithEvents(bool withEvents)
Parameters
TypeNameDescription
BooleanwithEvents

whether or not to use events to update lists

Returns
TypeDescription
InitializeOptions

The InitializeOptions with the updated events flag

WithMemberPresence(Boolean)

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

Declaration
public InitializeOptions WithMemberPresence(bool withPresence)
Parameters
TypeNameDescription
BooleanwithPresence

Whether or not to attach presence data

Returns
TypeDescription
InitializeOptions

The InitializeOptions with the updated presence flag

WithMemberProfile(Boolean)

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

Declaration
public InitializeOptions WithMemberProfile(bool withProfile)
Parameters
TypeNameDescription
BooleanwithProfile

Whether or not to attach profile data

Returns
TypeDescription
InitializeOptions

The InitializeOptions with the updated profile flag