Package com.castlabs.android.thumbs
Class ExtensibleSdkElement
java.lang.Object
com.castlabs.android.thumbs.ExtensibleSdkElement
Base class for SDK elements that can be extended with additional functionality.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for extensions that can be added to anExtensibleSdkElement. -
Constructor Summary
ConstructorsConstructorDescriptionExtensibleSdkElement(List<RequestModifier> requestModifiers) Creates a new ExtensibleSdkElement with the given request modifiers. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequestModifier(RequestModifier requestModifier) Adds a request modifier to the element.Returns the current player configuration.voidremoveRequestModifier(RequestModifier requestModifier) Removes a request modifier from the element.
-
Constructor Details
-
ExtensibleSdkElement
Creates a new ExtensibleSdkElement with the given request modifiers.- Parameters:
requestModifiers- the list of request modifiers
-
-
Method Details
-
addRequestModifier
Adds a request modifier to the element.- Parameters:
requestModifier- the request modifier to add
-
removeRequestModifier
Removes a request modifier from the element.- Parameters:
requestModifier- the request modifier to remove
-
getCurrentConfig
Returns the current player configuration.- Returns:
- the current player configuration
-