In continuation to previous my previous blogs, where we learnt about how can we use AndroidJavaClass and AndroidJavaObject to achieve simple native Android functionality in Unity, We will move one step ahead and see how can we typecast one Android object to another in Unity. …
After reading my last blog about Kotlin with function, a lot of developers have asked me about, why with is not an extension to Template class like other scope functions? …
Kotlin has made our life very easy by providing features like extension functions, nullability check and much more. One such kind of really helpful feature is Scope functions. …
Kotlin has made our life very easy by providing features like extension functions, nullability check and much more. One such kind of really helpful feature is Scope functions. …
In continuation to my previous post where I explained about Kotlin let function and Kotlin apply function, let’s try to understand today about also function today. …
Collections in any language is an interface that stores similar data type objects and provides an iteration functionality. The common extensions of Collection are List and Set. …
Kotlin is a powerful language that reduces a lot of boilerplate code required to perform basic operations in comparison to Java. …
if let and guard let are two conditional operators or condition checker which make our life super easy. Other languages have only if as condition checker but swift provides if let as well as guard let also which are operationally same but a bit different in functionality. …
Kotlin is a powerful language that reduced a lot of boilerplate code when compared to Java. The single expression function is the same in terms of reducing the boilerplate code. …
Before we learn about reified, Generics in any language is the powerful features that allow us to define classes, methods and properties which are accessible using different data types while keeping a check of the compile-time type safety. …
Enums are special classes which limit the possible values of an object for that class. The possible values defined for that class are final or unchangeable. …
Adding a click event to a UIView is something that is required most of the time. For views like UIButton, we can connect an IBAction with the event type and detect the click events but sometimes we need it for Lable or even other views. …
Variables, Objects and References, we frequently listen to these terms while development but usually gets confused between them. Let’s try to understand a very basic definition along with an example for all three. …
In the previous blogs, we learnt about how can we trigger native Android text, image or any other format file sharing in Unity App. …
“how are extension functions resolved?” This question is being asked by almost everyone both in and outside the interviews. Even I have asked this question to many candidates during the interview. …
Ever imagined calling a public function of a class without dot and parentheses of the parameter in Kotlin. Kotlin provides infix notation with which we can call a function with the class object without using a dot and parentheses across the parameter. …
Whatsapp is something which doesn’t require any introduction. It’s a conversation app used by millions of users across the world. These million users make it unique for developers also to give special attention when it comes to sharing some message through Whatsapp. …
Extension functions are really-really helpful while writing code in Kotlin. You don’t have to extend the class but you can add the functionality to even a final (non-open) class which will be resolved statically but how about extension properties. …
In the previous blogs Native Android text sharing in Unity and Native Android image sharing in Unity we learnt about how to share some text or screenshot to other apps in a Unity app targeting Android platforms. …
In continuation to my previous post where I explained about Kotlin let function, let’s try to understand today about apply function today. …