LocalProductsDataSource

public protocol LocalProductsDataSource

An instance conforming to LocalProductsDataSource represents a data source of in-app purchase items (products) available before requesting products from the store.

  • The number of products.

    Declaration

    Swift

    var productsCount: Int
  • The Set of product identifiers.

    Declaration

    Swift

    var productIdentifiers: Set<String>
  • Declaration

    Swift

    func nameForProductAtIndex(_ index: Int) -> String

    Parameters

    index

    An index of product in the data source.

    Return Value

    Non-localized name for product on specified index.

  • Declaration

    Swift

    func identifierForProductAtIndex(_ index: Int) -> String

    Parameters

    index

    An index of product in the data source.

    Return Value

    Identifier for product on specified index.

  • Declaration

    Swift

    func descriptionForProductAtIndex(_ index: Int) -> String

    Parameters

    index

    An index of product in the data source.

    Return Value

    Non-localized description for product on specified index.