Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hiyorin/PermissionPlugin-for-Unity

A set of tools for Unity to allow handling Permission for Android and iOS.
https://github.com/hiyorin/PermissionPlugin-for-Unity

android ios unity

Last synced: 3 months ago
JSON representation

A set of tools for Unity to allow handling Permission for Android and iOS.

Awesome Lists containing this project

README

        

# PermissionPlugin
A set of tools for Unity to allow handling Permission for Android and iOS.

# Install
PermissionPlugin.unitypackage

# Usage
```cs
using Permission;
```

#### Example: Check permissions.
```cs
public IEnumerator Example()
{
yield return PermissionPlugin.Check(PermissionType.Camera, result =
{
Debug.Log(result);
});
}
```

#### Example: Request permission.
```cs
public IEnumerator Example()
{
yield return PermissionPlugin.Request(PermissionType.Camera, result =>
{
Debug.Log(result);
});
}
```

#### Example: Open permission setting screen.
```cs
public void Example()
{
PermissionPlugin.Open(PermissionType.Camera);
}
```

# AndroidManifest.xml
Replace main Activity.
```xml