Awesome
Unity-CrossPlatfromAPI
A unity plugin that provides a unified cross-platform API
Android and IOS API for unity.
iOS | Android | Function |
---|---|---|
:o: | :o: | void SaveToAlbum(string filename) |
:o: | :o: | void PasteToClipboard(string text) |
:o: | :o: | string CopyFromClipboard() |
:o: | :o: | void NativeShareText(string text) |
:o: | :o: | void NativeShareImage(string image, string text = null) |
Frequently Asked Questions
Crashed when calling the SaveToAlbum () method on iOS 10
This app has crashed because it attempted to access privacy-sensitive data without a usage description.The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
Add NSPhotoLibraryUsageDescription
to Info.plist
file to fix it.
like following code:
<key>NSPhotoLibraryUsageDescription</key>
<string>Photo Library Access Warning</string>