Documentation for the Unity C# Library
Loading...
Searching...
No Matches
PixoVR.Apex.PixoAndroidUtils Class Reference

Static Public Member Functions

static bool GetIntentBooleanExtra (string key, bool defaultValue)
 Returns a boolean from the Android intent extras.
 
static string GetIntentStringExtra (string key)
 Returns a string from the Android intent extras.
 
static bool HasIntentExtra (string key)
 Returns if the Android intent extras bundle has a key with the given name.
 
static bool IsAppInstalled (string packageName)
 
static bool LaunchApp (string packageName, string[] extraKeys, string[] extraValues)
 

Properties

static AndroidJavaObject ApplicationContext [get]
 JNI to call CurrentActivity.getApplicationContext()
 
static AndroidJavaObject ApplicationInfo [get]
 JNI to call ApplicationContext.getApplicationInfo()
 
static AndroidJavaObject CurrentActivity [get]
 JNI to call com.unity.player.UnityPlayer.currentActivity()
 
static AndroidJavaObject NativeUtils [get]
 Returns an instance of the PixoUtils.java class in the Apex SDK.
 
static AndroidJavaObject PackageManager [get]
 

Static Private Attributes

static AndroidJavaObject applicationContext
 
static AndroidJavaObject applicationInfo
 
static AndroidJavaObject currentActivity
 
static AndroidJavaObject nativeUtils
 
static AndroidJavaObject packageManager
 

Detailed Description

Definition at line 7 of file PixoAndroidUtils.cs.

Member Function Documentation

◆ GetIntentBooleanExtra()

static bool PixoVR.Apex.PixoAndroidUtils.GetIntentBooleanExtra ( string key,
bool defaultValue )
inlinestatic

Returns a boolean from the Android intent extras.

Parameters
keyThe key to read the boolean from
defaultValueThe default value in case the key doesn't exist
Returns

Definition at line 100 of file PixoAndroidUtils.cs.

◆ GetIntentStringExtra()

static string PixoVR.Apex.PixoAndroidUtils.GetIntentStringExtra ( string key)
inlinestatic

Returns a string from the Android intent extras.

Parameters
keyThe key to read the string from
Returns

Definition at line 111 of file PixoAndroidUtils.cs.

◆ HasIntentExtra()

static bool PixoVR.Apex.PixoAndroidUtils.HasIntentExtra ( string key)
inlinestatic

Returns if the Android intent extras bundle has a key with the given name.

Parameters
key
Returns

Definition at line 86 of file PixoAndroidUtils.cs.

◆ IsAppInstalled()

static bool PixoVR.Apex.PixoAndroidUtils.IsAppInstalled ( string packageName)
inlinestatic

Definition at line 117 of file PixoAndroidUtils.cs.

◆ LaunchApp()

static bool PixoVR.Apex.PixoAndroidUtils.LaunchApp ( string packageName,
string[] extraKeys,
string[] extraValues )
inlinestatic

Definition at line 124 of file PixoAndroidUtils.cs.

Here is the caller graph for this function:

Member Data Documentation

◆ applicationContext

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.applicationContext
staticprivate

Definition at line 50 of file PixoAndroidUtils.cs.

◆ applicationInfo

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.applicationInfo
staticprivate

Definition at line 64 of file PixoAndroidUtils.cs.

◆ currentActivity

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.currentActivity
staticprivate

Definition at line 25 of file PixoAndroidUtils.cs.

◆ nativeUtils

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.nativeUtils
staticprivate

Definition at line 78 of file PixoAndroidUtils.cs.

◆ packageManager

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.packageManager
staticprivate

Definition at line 36 of file PixoAndroidUtils.cs.

Property Documentation

◆ ApplicationContext

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.ApplicationContext
staticget

JNI to call CurrentActivity.getApplicationContext()

Definition at line 41 of file PixoAndroidUtils.cs.

◆ ApplicationInfo

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.ApplicationInfo
staticget

JNI to call ApplicationContext.getApplicationInfo()

Definition at line 55 of file PixoAndroidUtils.cs.

◆ CurrentActivity

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.CurrentActivity
staticget

JNI to call com.unity.player.UnityPlayer.currentActivity()

Definition at line 13 of file PixoAndroidUtils.cs.

◆ NativeUtils

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.NativeUtils
staticget

Returns an instance of the PixoUtils.java class in the Apex SDK.

Definition at line 69 of file PixoAndroidUtils.cs.

◆ PackageManager

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.PackageManager
staticget

Definition at line 27 of file PixoAndroidUtils.cs.


The documentation for this class was generated from the following file: