Skip to content

Requestes iOS camera permission with a callback method.

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

DreamHarvesters/Unity_iOSCameraPermission

 
 

Repository files navigation

Unity_iOSCameraPermission

Requestes iOS camera permission with a callback method in Unity.

USAGE

The iOSCameraPermission static class will only function in iOS.

Still the class will NOT crash the app on other platforms. It will just do nothing.

The string callbackName argument must match the name of the callback method you want to use.

The callback method must require a single string argument.

The string received will either be "true" or "false".

NOTE: You must set a Camera Usage Description in the Player Settings.

Plugin directory structure

All .h and .m files must be in the follow location:

[ProjectName] > Assets > Plugins > iOS

Usage Sample

See Assets > Scenes > SampleScene.unity

SampleScene implements the SampleUsage class.

Camera Usage Description is set to "Sample Camera Usage Description"

About

Requestes iOS camera permission with a callback method.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 62.5%
  • C# 37.5%