Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/hiyorin/PermissionPlugin-for-Unity
- Owner: hiyorin
- License: mit
- Created: 2018-03-15T14:29:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-12T13:55:34.000Z (about 6 years ago)
- Last Synced: 2024-07-14T13:36:43.710Z (4 months ago)
- Topics: android, ios, unity
- Language: C#
- Homepage:
- Size: 1.86 MB
- Stars: 20
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - PermissionPlugin - A set of tools to allow handling Permission for Android and iOS (iOS / Android)
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