AutofillIdCompat


class AutofillIdCompat


Helper for accessing features in AutofillId.

Summary

Public functions

AutofillId
@RequiresApi(value = 26)
toAutofillId()

Provides the AutofillId represented by this object.

java-static AutofillIdCompat
@RequiresApi(value = 26)
toAutofillIdCompat(autofillId: AutofillId)

Provides a backward-compatible wrapper for AutofillId.

Public functions

toAutofillId

Added in 1.11.0
@RequiresApi(value = 26)
fun toAutofillId(): AutofillId

Provides the AutofillId represented by this object.

This method is not supported on devices running SDK <26 since the platform class will not be available.

Returns
AutofillId

platform class object

toAutofillIdCompat

Added in 1.11.0
@RequiresApi(value = 26)
java-static fun toAutofillIdCompat(autofillId: AutofillId): AutofillIdCompat

Provides a backward-compatible wrapper for AutofillId.

This method is not supported on devices running SDK <26 since the platform class will not be available.

Parameters
autofillId: AutofillId

platform class to wrap

Returns
AutofillIdCompat

wrapped class