BundledSubscription.Builder


public final class BundledSubscription.Builder


Builder class for BundledSubscription.

Summary

Public constructors

Public methods

BundledSubscription.Builder

Adds an entitlement to the bundled subscription.

BundledSubscription.Builder

Adds a list of entitlements to the bundled subscription.

BundledSubscription
BundledSubscription.Builder
@CanIgnoreReturnValue
setBundledSubscriptionProviderPackageName(
    String bundledSubscriptionProviderPackageName
)

Sets the package name of the bundled subscription provider.

BundledSubscription.Builder
@CanIgnoreReturnValue
setExpirationTimeMillis(long expirationTimeMillis)

Sets the expiration time of the bundled subscription in milliseconds.

BundledSubscription.Builder

Sets the type of the bundled subscription.

Public constructors

Builder

public Builder()

Public methods

addEntitlement

@CanIgnoreReturnValue
public BundledSubscription.Builder addEntitlement(SubscriptionEntitlement entitlement)

Adds an entitlement to the bundled subscription.

addEntitlements

@CanIgnoreReturnValue
public BundledSubscription.Builder addEntitlements(List<SubscriptionEntitlement> entitlements)

Adds a list of entitlements to the bundled subscription.

build

public BundledSubscription build()

setBundledSubscriptionProviderPackageName

@CanIgnoreReturnValue
public BundledSubscription.Builder setBundledSubscriptionProviderPackageName(
    String bundledSubscriptionProviderPackageName
)

Sets the package name of the bundled subscription provider.

setExpirationTimeMillis

@CanIgnoreReturnValue
public BundledSubscription.Builder setExpirationTimeMillis(long expirationTimeMillis)

Sets the expiration time of the bundled subscription in milliseconds.

setSubscriptionType

@CanIgnoreReturnValue
public BundledSubscription.Builder setSubscriptionType(@SubscriptionType int subscriptionType)

Sets the type of the bundled subscription.