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

Static Public Member Functions

static bool DeleteFileFromSharedStorage (string fileName)
 
static bool DoesFileExistInSharedLocation (string fileName)
 
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 string GetPackageLocation (string packageName)
 
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)
 
static bool LaunchUrl (string url)
 
static void Quit ()
 
static string ReadFileFromSharedStorage (string fileName)
 
static string WriteFileToSharedLocation (string fileName, string content)
 

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 5 of file PixoAndroidUtils.cs.

Member Function Documentation

◆ DeleteFileFromSharedStorage()

static bool PixoVR.Apex.PixoAndroidUtils.DeleteFileFromSharedStorage ( string fileName)
inlinestatic

Definition at line 152 of file PixoAndroidUtils.cs.

◆ DoesFileExistInSharedLocation()

static bool PixoVR.Apex.PixoAndroidUtils.DoesFileExistInSharedLocation ( string fileName)
inlinestatic

Definition at line 157 of file PixoAndroidUtils.cs.

Here is the caller graph for this function:

◆ 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 98 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 109 of file PixoAndroidUtils.cs.

◆ GetPackageLocation()

static string PixoVR.Apex.PixoAndroidUtils.GetPackageLocation ( string packageName)
inlinestatic

Definition at line 137 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 84 of file PixoAndroidUtils.cs.

◆ IsAppInstalled()

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

Definition at line 115 of file PixoAndroidUtils.cs.

◆ LaunchApp()

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

Definition at line 127 of file PixoAndroidUtils.cs.

Here is the caller graph for this function:

◆ LaunchUrl()

static bool PixoVR.Apex.PixoAndroidUtils.LaunchUrl ( string url)
inlinestatic

Definition at line 132 of file PixoAndroidUtils.cs.

Here is the caller graph for this function:

◆ Quit()

static void PixoVR.Apex.PixoAndroidUtils.Quit ( )
inlinestatic

Definition at line 122 of file PixoAndroidUtils.cs.

Here is the caller graph for this function:

◆ ReadFileFromSharedStorage()

static string PixoVR.Apex.PixoAndroidUtils.ReadFileFromSharedStorage ( string fileName)
inlinestatic

Definition at line 147 of file PixoAndroidUtils.cs.

Here is the caller graph for this function:

◆ WriteFileToSharedLocation()

static string PixoVR.Apex.PixoAndroidUtils.WriteFileToSharedLocation ( string fileName,
string content )
inlinestatic

Definition at line 142 of file PixoAndroidUtils.cs.

Member Data Documentation

◆ applicationContext

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.applicationContext
staticprivate

Definition at line 48 of file PixoAndroidUtils.cs.

◆ applicationInfo

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.applicationInfo
staticprivate

Definition at line 62 of file PixoAndroidUtils.cs.

◆ currentActivity

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.currentActivity
staticprivate

Definition at line 23 of file PixoAndroidUtils.cs.

◆ nativeUtils

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.nativeUtils
staticprivate

Definition at line 76 of file PixoAndroidUtils.cs.

◆ packageManager

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.packageManager
staticprivate

Definition at line 34 of file PixoAndroidUtils.cs.

Property Documentation

◆ ApplicationContext

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.ApplicationContext
staticget

JNI to call CurrentActivity.getApplicationContext()

Definition at line 39 of file PixoAndroidUtils.cs.

◆ ApplicationInfo

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.ApplicationInfo
staticget

JNI to call ApplicationContext.getApplicationInfo()

Definition at line 53 of file PixoAndroidUtils.cs.

◆ CurrentActivity

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.CurrentActivity
staticget

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

Definition at line 11 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 67 of file PixoAndroidUtils.cs.

◆ PackageManager

AndroidJavaObject PixoVR.Apex.PixoAndroidUtils.PackageManager
staticget

Definition at line 25 of file PixoAndroidUtils.cs.


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