ClearCreationOptionsRequest.ClearTypedCreationOption

public final class ClearCreationOptionsRequest.ClearTypedCreationOption implements Parcelable


A request to configure how to clear the registries for a given type.

The order of the conditions are important. If deleteAllForType is true, then the other conditions are ignored and all the registries for the given type are deleted. Otherwise, the registries with the IDs provided in registryIds will be deleted.

Summary

Public constructors

ClearTypedCreationOption(
    boolean deleteAllForType,
    @NonNull String type,
    @NonNull List<@NonNull String> registryIds
)

constructs an instance of ClearTypedCreationOption

Public methods

final int
final boolean

whether to delete all registries for the given type

final @NonNull List<@NonNull String>

the IDs of the registries for the given type to delete

final @NonNull String

the type of registry to clear, matching the RegistrationRequest.type provided during registration

void
writeToParcel(@NonNull Parcel dest, int flags)

Public constructors

ClearTypedCreationOption

public ClearTypedCreationOption(
    boolean deleteAllForType,
    @NonNull String type,
    @NonNull List<@NonNull String> registryIds
)

constructs an instance of ClearTypedCreationOption

Parameters
boolean deleteAllForType

whether to delete all registries for the given type

@NonNull String type

the type of registry to clear, matching the RegistrationRequest.type provided during registration

@NonNull List<@NonNull String> registryIds

the IDs of the registries for the given type to delete

Public methods

describeContents

public final int describeContents()

getDeleteAllForType

public final boolean getDeleteAllForType()

whether to delete all registries for the given type

getRegistryIds

public final @NonNull List<@NonNull StringgetRegistryIds()

the IDs of the registries for the given type to delete

getType

public final @NonNull String getType()

the type of registry to clear, matching the RegistrationRequest.type provided during registration

writeToParcel

public void writeToParcel(@NonNull Parcel dest, int flags)