This site has been permanently archived. The content on this site was last updated in 2019.
Stay organized with collections
Save and categorize content based on your preferences.
GvrIntent
Provides information about the Android Intent that started the current Activity.
Summary
Public static functions
|
GetData()
|
string
Returns the string representation of the data URI on which this activity's intent is operating.
|
GetIntentHashCode()
|
int
Returns the hash code of the Java intent object.
|
IsLaunchedFromVr()
|
bool
Checks whether the intent category contains "android.intent.extra.VR_LAUNCH".
|
Public static functions
GetData
string GetData()
Returns the string representation of the data URI on which this activity's intent is operating.
See Intent.getDataString()
in the Android documentation.
Details |
Returns
|
The string representation of the data URI on which this activity's intent is operating.
|
GetIntentHashCode
int GetIntentHashCode()
Returns the hash code of the Java intent object.
Useful for discerning whether you have a new intent on un-pause.
Details |
Returns
|
The hash code of the Java intent object.
|
IsLaunchedFromVr
bool IsLaunchedFromVr()
Checks whether the intent category contains "android.intent.extra.VR_LAUNCH".
Details |
Returns
|
Returns true if the intent category contains "android.intent.extra.VR_LAUNCH", false otherwise.
|
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[null,null,["Last updated 2024-10-09 UTC."],[[["\u003cp\u003e\u003ccode\u003eGvrIntent\u003c/code\u003e provides details about the Android Intent that initiated the current Activity.\u003c/p\u003e\n"],["\u003cp\u003eIt offers functions to access the data URI, intent hash code, and determine if the Activity was launched from VR.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize \u003ccode\u003eGvrIntent\u003c/code\u003e to understand the context and origin of their Activity within a VR environment.\u003c/p\u003e\n"]]],["The `GvrIntent` class provides details about the Android Intent that initiated the current Activity. Key actions include: `GetData()`, which retrieves the string representation of the data URI for the activity's intent; `GetIntentHashCode()`, which returns the hash code of the Java intent object; and `IsLaunchedFromVr()`, which determines if the intent contains the \"android.intent.extra.VR_LAUNCH\" category, indicating a VR launch. These functions offer ways to understand the intent of the activity.\n"],null,["# GvrIntent Class Reference\n\nGvrIntent\n=========\n\nProvides information about the Android Intent that started the current Activity.\n\nSummary\n-------\n\n| ### Public static functions ||\n|-----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [GetData](#classGvrIntent_1a6e6d79223831e217d219a034f9967481)`()` | `string` Returns the string representation of the data URI on which this activity's intent is operating. |\n| [GetIntentHashCode](#classGvrIntent_1ad275d7eef188e4c3832fc93745fbe801)`()` | `int` Returns the hash code of the Java intent object. |\n| [IsLaunchedFromVr](#classGvrIntent_1a66212d583253e0dca3bd00cc563d3739)`()` | `bool` Checks whether the intent category contains \"android.intent.extra.VR_LAUNCH\". |\n\nPublic static functions\n-----------------------\n\n### GetData\n\n```c#\nstring GetData()\n``` \nReturns the string representation of the data URI on which this activity's intent is operating.\n\nSee `Intent.getDataString()` in the Android documentation.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-------------------------------------------------------------------------------------------|\n| **Returns** | The `string` representation of the data URI on which this activity's intent is operating. |\n\n### GetIntentHashCode\n\n```c#\nint GetIntentHashCode()\n``` \nReturns the hash code of the Java intent object.\n\nUseful for discerning whether you have a new intent on un-pause.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|------------------------------------------|\n| **Returns** | The hash code of the Java intent object. |\n\n### IsLaunchedFromVr\n\n```c#\nbool IsLaunchedFromVr()\n``` \nChecks whether the intent category contains \"android.intent.extra.VR_LAUNCH\".\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-----------------------------------------------------------------------------------------------------|\n| **Returns** | Returns `true` if the intent category contains \"android.intent.extra.VR_LAUNCH\", `false` otherwise. |"]]