library / org.akop.kotx.ext.content / android.content.res.TypedArray / use

use

fun <T> TypedArray.use(block: (TypedArray) -> T): T

Invokes block, passing it the receiver and returning the value it returns. Recycles the receiver after block completes.

Parameters

block - Lambda function accepting an instance of the receiver.

Return
Value returned by block.