noinline

If your function accepts more than one function type parameter, and you don't want to inline all parameters, you can place the noinline keyword in front of the ones you don't want inlined. As the next example shows, the first function argument will be inlined and the second will not be:

inline fun noInlineExample(first: () -> String, noinline second: () -> String) {
//omitted
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.148.106.139