This particular script will help you to store and retrieve custom class or struct objects in UserDefaults.
For further explaination on how this works, please read the article Custom Object in UserDefaults : Swift.
…This particular script will help you to implement a Value Change listener to all UISwitch and its subclasses in a clean way.
…This particular script will help you to implement a Date Change listener to all UIDatePicker and its subclasses in a clean way.
…This particular script will help you to implement a Text listener to all UITextField and its subclasses in a clean way.
…This particular script will help you to typecast one Android/Java object into another in Unity.
For further explaination on how this works, please read the article Native Android in Unity.
…This particular xml is an example of custom Android Manifest file which can be used in unity.
For further explaination on how this works, please read the article Custom Android Manifest File in Unity.
…This particular script will help you to implement a Click listener to all UIView and its subclasses in a clean way.
…This particular script will help you to implement a text message sharing directly to a WhatsApp contact in Unity.
For further explaination on how this works, please read the article Native Android text sharing to Whatsapp contact in Unity.
…This particular script will help you to implement a text message sharing directly to a WhatsApp contact in Android.
For further explaination on how this works, please read the article Android : Share message directly to whatsapp contact.
…This particular script will help you to implement native Android image sharing using Android’s FileProvider
in Unity. This is a fix for “android.os.FileUriExposedException” in Android 8 (Oreo) and above.
This particular script will help you to implement native Android text sharing to a particular app in Unity.
We use all the native classes of Android in Unity using AndroidJavaClass
and AndroidJavaObject
and perform the Android’s ACTION_SEND
with EXTRA_SUBJECT
and EXTRA_TEXT
, and share the content to a particular app with package name.
This particular script will help you to implement native Android image sharing in Unity.
We use all the native classes of Android in Unity using AndroidJavaClass
and AndroidJavaObject
and perform the Android’s ACTION_SEND
with EXTRA_SUBJECT
, EXTRA_TEXT
and EXTRA_STREAM
.
The content type is set to image/png
in the below example but you can change it to any type and share other formats also.
This particular script will help you to implement native Android text sharing in Unity.
We use all the native classes of Android in Unity using AndroidJavaClass
and AndroidJavaObject
and perform the Android’s ACTION_SEND
with EXTRA_SUBJECT
and EXTRA_TEXT
.
This particular script will help you to implement basic native Android in Unity.
This show an example of showing a native Android’s Toast
in unity using AndroidJavaClass
and AndroidJavaObject
.