O Google tem o compromisso de promover a igualdade racial para as comunidades negras. Saiba como.

TakePicturePreview

class TakePicturePreview : ActivityResultContract<Void!, Bitmap!>
kotlin.Any
   ↳ androidx.activity.result.contract.ActivityResultContract<java.lang.Void, android.graphics.Bitmap>
   ↳ androidx.activity.result.contract.ActivityResultContracts.TakePicturePreview

An ActivityResultContract to take small a picture preview, returning it as a Bitmap.

This can be extended to override createIntent if you wish to pass additional extras to the Intent created by super.createIntent().

Summary

Public constructors

An ActivityResultContract to take small a picture preview, returning it as a Bitmap.

Public methods
open Intent
createIntent(@NonNull context: Context, @Nullable input: Void?)

ActivityResultContract.SynchronousResult<Bitmap!>?
getSynchronousResult(@NonNull context: Context, @Nullable input: Void?)

Bitmap?
parseResult(resultCode: Int, @Nullable intent: Intent?)

Public constructors

<init>

TakePicturePreview()

An ActivityResultContract to take small a picture preview, returning it as a Bitmap.

This can be extended to override createIntent if you wish to pass additional extras to the Intent created by super.createIntent().

Public methods

createIntent

@CallSuper @NonNull open fun createIntent(
    @NonNull context: Context,
    @Nullable input: Void?
): Intent

getSynchronousResult

@Nullable fun getSynchronousResult(
    @NonNull context: Context,
    @Nullable input: Void?
): ActivityResultContract.SynchronousResult<Bitmap!>?

parseResult

@Nullable fun parseResult(
    resultCode: Int,
    @Nullable intent: Intent?
): Bitmap?