'On Complete on Normal function in Kotlin

I have a Piece of code I want to execute just after the completing the first function

        doc_ViewModel.encryption(img,txt,uid!!)

The above is just a random function [User defined] After this function is completed I want to trigger a block of Code but I am unable to access to On Complete Or On Success Listner via user defined functions

So in short, how can I trigger a block of code after Finishing of First function and only than proceeding to the next one?

Thanks in Advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source