Scope Function in Kotlin

What is Scope Function?

Scope Function execute a block of code within context of object.That is if you perform this function on an object inside an lambda expresssion then the scope inside the expression will be executed that is called Scope Function

Types Of Scope Function

Implementing onBoarding ViewPager Using JetPack Compose

Lets jump straight in to the example

Necessary implementation to the app level build gradle file

// Paging Compose
implementation "com.google.accompanist:accompanist-pager:0.13.0"
implementation "com.google.accompanist:accompanist-pager-indicators:0.13.0"

implementation "androidx.hilt:hilt-navigation-fragment:1.0.0"
implementation "androidx.hilt:hilt-navigation-compose:1.0.0-alpha03"
implementation "androidx.navigation:navigation-compose:2.4.0-alpha04"

implementation "androidx.compose.runtime:runtime-livedata:$compose_version"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.3.1"…

How to implement camera Capture and save Image using Jetpack compose

For this we need to implement camerax in our app level gradle file

def camerax_version = "1.0.2"
implementation "androidx.camera:camera-core:${camerax_version}"
implementation "androidx.camera:camera-camera2:${camerax_version}"
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
implementation "androidx.camera:camera-view:1.0.0-alpha29"

Followed by our permission implementation

implementation "com.google.accompanist:accompanist-permissions:0.19.0"…

Handling Multiple Permission using Jetpack Compose

Hi Friends todays we look in to how to handle multiple permission using Jetpack compose so in this example we use CAMERA and RECORD_AUDIO Permission

First we have to add google accompanist implementation in our app build gradle which make the permission process easy

Flow vs SharedFlow

what is Flow?

Flow is an interface , its just emit value it doesn't store any value on screen rotation it will be started from first. we use flow if you want to emit any api response to view or any multiple emit need to be done.

StateFlow

what is Stateflow?

StateFlow is an interface, which contains read-only and always return the updated value.The update value is passed through implemented flow like MutableStateFlow.

StateFlow return only when the value is updated if same value mean it doesnt return

StateFlow is observed using collect inside corroutine scope like…

Fragment

What is fragment and why we use fragment?

First lets see what is fragment?

Fragment can be called as part of activity or may be ‘’sub activity’’ the fragments lifecycle depends on the activity lifecycle since the fragments are included inside the activity. …

Load data from api to recylerview using JetPack Compose

Hi today we look in to an concept of how to load data from an api using retrofit and load in to an recylerview using Jetpack Compose and single selection highlight on recylerview selection.

First we import things needed for retrofit…

Application for Java,Kotlin and Data structure Programmer

Hi friends i have created an app for the programmers to keep in touch with latest technologies and to learn existing & new concept.So Please check my app on play store its very simple and easy to use i will be posting my updates daily in that application.

Thanks for your support and keep supporting to learn new thing

Design TopAppBar and BottomNavigationBar with Different view change on menu select using JetPack Compose

Hi first lets see how to implement top app bar using jectpack compose for that we need to create a composable function TopBar

@Composable
fun TopBar() {
TopAppBar(…

Pandiyan Mani

Knowledge is everything.Check out my app at https://play.google.com/store/apps/details?id=com.vibe.britevibe

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store