BundledSubscription.Builder


class BundledSubscription.Builder


Builder class for BundledSubscription.

Summary

Public constructors

Public functions

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(
    bundledSubscriptionProviderPackageName: String!
)

Sets the package name of the bundled subscription provider.

BundledSubscription.Builder!

Sets the expiration time of the bundled subscription in milliseconds.

BundledSubscription.Builder!

Sets the type of the bundled subscription.

Public constructors

Builder

Builder()

Public functions

addEntitlement

@CanIgnoreReturnValue
fun addEntitlement(entitlement: SubscriptionEntitlement!): BundledSubscription.Builder!

Adds an entitlement to the bundled subscription.

addEntitlements

@CanIgnoreReturnValue
fun addEntitlements(entitlements: (Mutable)List<SubscriptionEntitlement!>!): BundledSubscription.Builder!

Adds a list of entitlements to the bundled subscription.

build

fun build(): BundledSubscription!

setBundledSubscriptionProviderPackageName

@CanIgnoreReturnValue
fun setBundledSubscriptionProviderPackageName(
    bundledSubscriptionProviderPackageName: String!
): BundledSubscription.Builder!

Sets the package name of the bundled subscription provider.

setExpirationTimeMillis

@CanIgnoreReturnValue
fun setExpirationTimeMillis(expirationTimeMillis: Long): BundledSubscription.Builder!

Sets the expiration time of the bundled subscription in milliseconds.

setSubscriptionType

@CanIgnoreReturnValue
fun setSubscriptionType(@SubscriptionType subscriptionType: Int): BundledSubscription.Builder!

Sets the type of the bundled subscription.