APSMediaBuilderPlugin
Objective-C
@protocol APSMediaBuilderPlugin <KRAdapter>
Swift
protocol APSMediaBuilderPlugin
Defines methods that need to be implemented by any object that want to register as an APSMediaBuilder plugin.
-
This method will be called at the beginning of the
mediaUnitsmethod of theAPSMediaBuilderobject that registered the plugin.Declaration
Objective-C
- (void)startForBuilder:(APSMediaBuilder *_Nonnull)builder;Swift
func start(for builder: APSMediaBuilder)Parameters
builderA reference to the calling
APSMediaBuilderobject.
-
The string key that will be used in the root of JSON and dictionary builder configurations to hold all the specific configuration details for the plugin.
Declaration
Objective-C
- (NSString *_Nonnull)dictionaryConfigurationKey;Swift
func dictionaryConfigurationKey() -> StringReturn Value
String key.
-
This method is called by the
APSMediaBuilderobject, in the process of its configuration. The method is only called if in the root of the configuring JSON orNSDictionarythere is a key equal to the string defined by the plugin using thedictionaryConfigurationKeymethod.Declaration
Objective-C
- (void)configureFromDictionary:(NSDictionary *_Nonnull)configuration;Swift
func configure(from configuration: [AnyHashable : Any])Parameters
configurationA
NSDictionaryobject containing the specific plugin configuration data.
APSMediaBuilderPlugin Protocol Reference