Gists


Custom Object in UserDefaults : Swift (Github Gist)
UserDefaults provides us with direct functions for storing primitive data types like Int, Double, Bool, and String. But for custom data types, there is no direct way to store them in UserDefaults. But there is a workaround with which we can store the custom object to UserDefaults. read more
09 Apr 2022
UISwitch Value Change Listener : Swift (Github Gist)
Adding an editing event to a UISwitch is something that is required most of the time. For views like UISwitch, we can connect an IBAction with the event type as value changed and get a callback for the value changed. read more
20 Mar 2022
UIDatePicker Date Change Listener : Swift (Github Gist)
Adding an editing event to a UIDatePicker is something that is required most of the time. For views like UIDatePicker, we can connect an IBAction with the event type as value changed and get a callback for the value changed. read more
09 Mar 2022
UITextField Text Listener : Swift (Github Gist)
Adding an editing event to a UITextField is something that is required most of the time. For views like UITextField, we can connect an IBAction with the event type as editing did end or value changed and get a callback for editing finished or value changed. read more
08 Mar 2022
Typecast Android Object in Untiy
An example of typecasting Android/Java object in unity read more
28 May 2021
Custom Android Manifest File in Unity
An example of custom Android Manifest.xml in Unity read more
21 May 2021
UIView ClickListener : Swift (Github Gist)
Adding a click event to a UIView is something which is required most of the times. For views like UIButton, we can simply connect an IBAction with the event type and detect the click events but sometimes we need it for Lable or even other views. read more
14 Dec 2020
Native Android text sharing to Whatsapp contact in Unity
The ideal way any app accepts text or image, video or any other format for sharing is through intent filters defined in the manifest file. Whatsapp also does the same and accepts all possible format (with some size and other limitations) but that will take you to a contact selection screen in Whatsapp. read more
26 Nov 2020
Android : Share message directly to whatsapp contact
The ideal way any app accepts text or image, video or any other format for sharing is through intent filters defined in the manifest file. Whatsapp also does the same and accepts all possible format (with some size and other limitations) but that will take you to a contact selection screen in Whatsapp. read more
23 Nov 2020
Native Android image sharing in Unity using FileProvider
An example of implementing native Android image/screenshot sharing using FileProvider in Unity. read more
15 Oct 2020
Native Android text sharing to particular app in Unity
An example of implementing native Android text sharing to a particular app using app's package name in Unity. read more
12 Oct 2020
Native Android image sharing in Unity
An example of implementing native Android image/screenshot sharing in Unity. read more
11 Oct 2020
Native Android text sharing in Unity
An example of implementing native Android text sharing in Unity. read more
10 Oct 2020
Native Android in Unity
An example of implementing Android native code in Unity. read more
09 Oct 2020