1.4.1
Documentation for the Unity C# Library
Loading...
Searching...
No Matches
RequestAuthPin.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
using
UnityEngine.UI;
3
using
PixoVR.Apex
;
4
5
public
class
RequestAuthPin
:
MonoBehaviour
6
{
7
public
Text
AuthCodeText
;
8
9
// Start is called before the first frame update
10
void
Start
()
11
{
12
ApexSystem
.
Instance
.OnAuthorizationCodeReceived.AddListener(
DisplayAuthCode
);
13
}
14
15
// Update is called once per frame
16
void
Update
()
17
{
18
19
}
20
21
public
void
RequestAuthorizationPin
()
22
{
23
ApexSystem
.
RequestAuthorizationCode
();
24
}
25
26
public
void
DisplayAuthCode
(
string
authCode)
27
{
28
if
(
AuthCodeText
)
29
{
30
AuthCodeText.text = authCode;
31
}
32
}
33
}
MonoBehaviour
PixoVR.Apex.ApexSingleton.Instance
static T Instance
Definition
ApexSingleton.cs:14
PixoVR.Apex.ApexSystem
Definition
ApexSystem.cs:23
PixoVR.Apex.ApexSystem.RequestAuthorizationCode
static bool RequestAuthorizationCode()
Definition
ApexSystem.cs:564
RequestAuthPin
Definition
RequestAuthPin.cs:6
RequestAuthPin.RequestAuthorizationPin
void RequestAuthorizationPin()
Definition
RequestAuthPin.cs:21
RequestAuthPin.AuthCodeText
Text AuthCodeText
Definition
RequestAuthPin.cs:7
RequestAuthPin.Update
void Update()
Definition
RequestAuthPin.cs:16
RequestAuthPin.DisplayAuthCode
void DisplayAuthCode(string authCode)
Definition
RequestAuthPin.cs:26
RequestAuthPin.Start
void Start()
Definition
RequestAuthPin.cs:10
PixoVR.Apex
Definition
PixoAndroidUtils.cs:6
Samples
DemoApexReporter
RequestAuthPin.cs
Generated
Mon Sep 16 2024 19:27:34
by Doxygen version
1.10.0