setContext

abstract fun setContext(context: Context): BannerXIndicator

The Context object to be used internally by the BannerXIndicator implementation.

Since BannerXIndicator is a Parcelable, this method is required to setup the BannerXIndicator implementation after recreation of its instance. A Context is NOT to be put in the parcel used for reconstructing an instance.

This method should be called on the BannerXIndicator instance before apply it in BannerX.

Return

The BannerXIndicator instance which can be used to chain the resetUsingParams method.

Parameters

context

The Context object.