API reference
API reference
Select your platform
No SDKs available
No versions available

RosterOptions Class

The roster option, to be passed into GroupPresence.LaunchRosterPanel() which is used to launch the panel displaying the current users in the roster/party. You can read more about rosters in our docs.

Constructors

RosterOptions ()
Creates a new instance of ::RosterOptions which is used to customize the option flow. It returns a handle to the newly created options object, which can be used to set various properties for the options.
Signature
Oculus.Platform.RosterOptions.RosterOptions()

Methods

AddSuggestedUser ( userID )
Passing in these users will add them to the invitable users list. From the GroupPresence.LaunchRosterPanel(), the Models.User can open the invite list, where the suggested users will be added.
Signature
void Oculus.Platform.RosterOptions.AddSuggestedUser(UInt64 userID)
Parameters
userID: UInt64
Returns
void
ClearSuggestedUsers ()
This method clears the SuggestedUsers options associated with this instance, and the instance will be in its default state.
Signature
void Oculus.Platform.RosterOptions.ClearSuggestedUsers()
Returns
void

Static Methods

operator IntPtr ( options )
This operator allows you to pass an instance of the ::RosterOptions class to native C code as an IntPtr. The operator returns the handle of the options object, or IntPtr.Zero if the object is null.
Signature
static Oculus.Platform.RosterOptions.operator IntPtr(RosterOptions options)
Parameters
options: RosterOptions