22

GitHub - ryanw3bb/unity-native-toolkit: Integrate native iOS & Android funct...

 5 years ago
source link: https://github.com/ryanw3bb/unity-native-toolkit
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Native Toolkit

Easily integrate native iOS & Android functionality into Unity projects.

  • Pick images from camera roll
  • Use device camera to take an image
  • Save image to gallery
  • Save screenshot to gallery
  • Send email with attachments
  • Retrieve a contact from contacts list
  • Alert dialogs
  • App rating
  • Local notifications
  • GPS data

Usage

Add the files contained in Unity/Assets/ to your project then call the required static function from your code. For instance:

public void OnSaveScreenshotPress()
{
	NativeToolkit.SaveScreenshot("MyScreenshot", "MyScreenshotFolder", "jpeg");
}

For iOS builds make sure you have Scripting Backend set to IL2CPP and Architecture set to Universal in Unity Build Settings.

For Android builds Write Access needs to be set to External (SDCard) to allow saving of images.

Documentation

Detailed API documentation can be found here: http://secondfury.com/nativetoolkit/

Android (Java) source located in Android/app/src/main/java/
iOS (Obj-C) source located in Unity/Assets/Plugins/iOS/


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK