The Android manifest file describes essential information about your app to the Android build tools, the Android operating system, and Google Play. Every Android app or unity app running on the Android platform must have a Manifest file. The manifest file contains information about package name, permissions, application name, icon, activities, services, providers and much more.
…In game development, one of the most common problems is the smooth transition of objects from one position to another. A linear interpolation or Lerp
function is a popular technique used to achieve this in Unity. In this blog post, we will explore the lerp function in Unity and its implementation.
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. Once you understand what scope functions are, you will not able to resist yourself from using them.
…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. Once you understand what scope functions are, you will not able to resist yourself from using them.
…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. The classic examples for the same are any
, non
and all
functions which were added to the Iterable interface and Map interface.
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.
…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. The concept is similar in any object-oriented programming language but for reference, I’ll be using Java examples. Feel free to comment below if you need examples in any specific language.
…In the previous blogs, we learnt about how can we trigger native Android text, image or any other format file sharing in Unity App. A lot of you have asked me about how can we share some text directly to a WhatsApp contact.
…“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. Using infix function provides more readability to a function similar to other operators like in, is, as in Kotlin.
…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.
…