AutofillIdCompat


public class AutofillIdCompat


Helper for accessing features in AutofillId.

Summary

Public methods

@NonNull AutofillId
@RequiresApi(value = 26)
toAutofillId()

Provides the AutofillId represented by this object.

static @NonNull AutofillIdCompat
@RequiresApi(value = 26)
toAutofillIdCompat(@NonNull AutofillId autofillId)

Provides a backward-compatible wrapper for AutofillId.

Public methods

toAutofillId

Added in 1.11.0
@RequiresApi(value = 26)
public @NonNull AutofillId toAutofillId()

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
@NonNull AutofillId

platform class object

toAutofillIdCompat

Added in 1.11.0
@RequiresApi(value = 26)
public static @NonNull AutofillIdCompat toAutofillIdCompat(@NonNull AutofillId autofillId)

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
@NonNull AutofillId autofillId

platform class to wrap

Returns
@NonNull AutofillIdCompat

wrapped class