| 1 | // This file was @generated with LibOVRPlatform/codegen/main. Do not modify it! |
| 2 | |
| 3 | namespace Oculus.Platform |
| 4 | { |
| 5 | using System; |
| 6 | using System.Collections; |
| 7 | using Oculus.Platform.Models; |
| 8 | using System.Collections.Generic; |
| 9 | using UnityEngine; |
| 10 | |
| 11 | public class RichPresenceOptions { |
| 12 | |
| 13 | public RichPresenceOptions() { |
| 14 | Handle = CAPI.ovr_RichPresenceOptions_Create(); |
| 15 | } |
| 16 | |
| 17 | public void SetApiName(string value) { |
| 18 | CAPI.ovr_RichPresenceOptions_SetApiName(Handle, value); |
| 19 | } |
| 20 | |
| 21 | public void SetArgs(string key, string value) { |
| 22 | CAPI.ovr_RichPresenceOptions_SetArgsString(Handle, key, value); |
| 23 | } |
| 24 | |
| 25 | public void ClearArgs() { |
| 26 | CAPI.ovr_RichPresenceOptions_ClearArgs(Handle); |
| 27 | } |
| 28 | |
| 29 | public void SetCurrentCapacity(uint value) { |
| 30 | CAPI.ovr_RichPresenceOptions_SetCurrentCapacity(Handle, value); |
| 31 | } |
| 32 | |
| 33 | public void SetDeeplinkMessageOverride(string value) { |
| 34 | CAPI.ovr_RichPresenceOptions_SetDeeplinkMessageOverride(Handle, value); |
| 35 | } |
| 36 | |
| 37 | public void SetEndTime(DateTime value) { |
| 38 | CAPI.ovr_RichPresenceOptions_SetEndTime(Handle, value); |
| 39 | } |
| 40 | |
| 41 | public void SetExtraContext(RichPresenceExtraContext value) { |
| 42 | CAPI.ovr_RichPresenceOptions_SetExtraContext(Handle, value); |
| 43 | } |
| 44 | |
| 45 | public void SetIsIdle(bool value) { |
| 46 | CAPI.ovr_RichPresenceOptions_SetIsIdle(Handle, value); |
| 47 | } |
| 48 | |
| 49 | public void SetIsJoinable(bool value) { |
| 50 | CAPI.ovr_RichPresenceOptions_SetIsJoinable(Handle, value); |
| 51 | } |
| 52 | |
| 53 | public void SetJoinableId(string value) { |
| 54 | CAPI.ovr_RichPresenceOptions_SetJoinableId(Handle, value); |
| 55 | } |
| 56 | |
| 57 | public void SetMaxCapacity(uint value) { |
| 58 | CAPI.ovr_RichPresenceOptions_SetMaxCapacity(Handle, value); |
| 59 | } |
| 60 | |
| 61 | public void SetStartTime(DateTime value) { |
| 62 | CAPI.ovr_RichPresenceOptions_SetStartTime(Handle, value); |
| 63 | } |
| 64 | |
| 65 | |
| 66 | // For passing to native C |
| 67 | public static explicit operator IntPtr(RichPresenceOptions options) { |
| 68 | return options != null ? options.Handle : IntPtr.Zero; |
| 69 | } |
| 70 | |
| 71 | ~RichPresenceOptions() { |
| 72 | CAPI.ovr_RichPresenceOptions_Destroy(Handle); |
| 73 | } |
| 74 | |
| 75 | IntPtr Handle; |
| 76 | } |
| 77 | } |