Class ProductContext

    • Constructor Detail

      • ProductContext

        public ProductContext​(@NonNull
                              android.content.Context context,
                              java.lang.String pluginId,
                              Product product)
        Gets or sets the product name that is used to fetch the proper assets
        Parameters:
        context - Application context
        pluginId - plugin Id
        product - Product that assets should be fetched for
      • ProductContext

        public ProductContext​(@NonNull
                              android.content.Context context,
                              java.lang.String pluginId,
                              Product product,
                              java.lang.String assetId)
        Creates a new ProductContext for a given Product with a specific asset Id
        Parameters:
        context - Application context
        pluginId - plugin Id
        product - Product that assets should be fetched for
        assetId - Asset Id of the Product
      • ProductContext

        public ProductContext​(@NonNull
                              android.content.Context context,
                              java.lang.String pluginId,
                              Product product,
                              Version assetVersion)
        Creates a new ProductContext for a given Product with a specific asset version on a specific Stage.
        Parameters:
        context - Application context
        pluginId - plugin Id
        product - Product that assets should be fetched for
        assetVersion - asset Version
      • ProductContext

        public ProductContext​(@NonNull
                              android.content.Context context,
                              java.lang.String pluginId,
                              Product product,
                              Version assetVersion,
                              java.lang.String stage)
        Creates a new ProductContext for a given Product with a specific asset version on a specific Stage.
        Parameters:
        context - Application context
        pluginId - plugin Id
        product - Product that assets should be fetched for
        assetVersion - asset Version
        stage - stage - set this to null to use the default stage
      • ProductContext

        public ProductContext​(@NonNull
                              android.content.Context context,
                              org.json.JSONObject jsonObject)
        Creates a new ProductContext from a JSON object
        Parameters:
        context - Application context
        jsonObject - JSON Object to be parsed
    • Method Detail

      • getProduct

        public Product getProduct()
        Gets the product
        Returns:
        product of current ProductContext