RichPresenceOptions.cs
2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
namespace Oculus.Platform
{
using System;
using System.Collections;
using Oculus.Platform.Models;
using System.Collections.Generic;
using UnityEngine;
public class RichPresenceOptions {
public RichPresenceOptions() {
Handle = CAPI.ovr_RichPresenceOptions_Create();
}
/// This the unique API Name that refers to an in-app destination
public void SetApiName(string value) {
CAPI.ovr_RichPresenceOptions_SetApiName(Handle, value);
}
/// The current amount of users that have joined this user's
/// squad/team/game/match etc.
public void SetCurrentCapacity(uint value) {
CAPI.ovr_RichPresenceOptions_SetCurrentCapacity(Handle, value);
}
/// Optionally passed in to use a different deeplink message than the one
/// defined in the api_name
public void SetDeeplinkMessageOverride(string value) {
CAPI.ovr_RichPresenceOptions_SetDeeplinkMessageOverride(Handle, value);
}
/// The time the current match/game/round etc. ends
public void SetEndTime(DateTime value) {
CAPI.ovr_RichPresenceOptions_SetEndTime(Handle, value);
}
public void SetExtraContext(RichPresenceExtraContext value) {
CAPI.ovr_RichPresenceOptions_SetExtraContext(Handle, value);
}
/// Users reported with the same instance ID will be considered to be together
/// and could interact with each other. Renamed to
/// RichPresenceOptions.SetInstanceId()
public void SetInstanceId(string value) {
CAPI.ovr_RichPresenceOptions_SetInstanceId(Handle, value);
}
/// Set whether or not the person is shown as active or idle
public void SetIsIdle(bool value) {
CAPI.ovr_RichPresenceOptions_SetIsIdle(Handle, value);
}
/// Set whether or not the person is shown as joinable or not to others
public void SetIsJoinable(bool value) {
CAPI.ovr_RichPresenceOptions_SetIsJoinable(Handle, value);
}
/// The maximum that can join this user
public void SetMaxCapacity(uint value) {
CAPI.ovr_RichPresenceOptions_SetMaxCapacity(Handle, value);
}
/// The time the current match/game/round etc. started
public void SetStartTime(DateTime value) {
CAPI.ovr_RichPresenceOptions_SetStartTime(Handle, value);
}
/// For passing to native C
public static explicit operator IntPtr(RichPresenceOptions options) {
return options != null ? options.Handle : IntPtr.Zero;
}
~RichPresenceOptions() {
CAPI.ovr_RichPresenceOptions_Destroy(Handle);
}
IntPtr Handle;
}
}