# GvrIntent Class Reference

# GvrIntent

Provides information about the Android Intent that started the current Activity.

## Summary

| ### Public static functions ||
|---|---|
| `https://developers.google.com/vr/reference/unity/class/GvrIntent#classGvrIntent_1a6e6d79223831e217d219a034f9967481()` | `string` Returns the string representation of the data URI on which this activity's intent is operating. |
| `https://developers.google.com/vr/reference/unity/class/GvrIntent#classGvrIntent_1ad275d7eef188e4c3832fc93745fbe801()` | `int` Returns the hash code of the Java intent object. |
| `https://developers.google.com/vr/reference/unity/class/GvrIntent#classGvrIntent_1a66212d583253e0dca3bd00cc563d3739()` | `bool` Checks whether the intent category contains "android.intent.extra.VR_LAUNCH". |

## Public static functions

### GetData

```c#
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.

<br />

| Details ||
|---|---|
| **Returns** | The `string` representation of the data URI on which this activity's intent is operating. |

### GetIntentHashCode

```c#
int GetIntentHashCode()
```
Returns the hash code of the Java intent object.

Useful for discerning whether you have a new intent on un-pause.

<br />

| Details ||
|---|---|
| **Returns** | The hash code of the Java intent object. |

### IsLaunchedFromVr

```c#
bool IsLaunchedFromVr()
```
Checks whether the intent category contains "android.intent.extra.VR_LAUNCH".

<br />

| Details ||
|---|---|
| **Returns** | Returns `true` if the intent category contains "android.intent.extra.VR_LAUNCH", `false` otherwise. |