Interface APSMediaPlayerActionDelegate
public interface APSMediaPlayerActionDelegate
The APSMediaPlayerActionDelegate protocol declares the two methods that a class must implement in order to become an
APSMediaPlayer actionDelegate. The object implementing APSMediaPlayer will receive information about the URLs that need to be executed as the user interacts with the player.-
Method Summary
Modifier and TypeMethodDescriptionbooleancanRespondTo(String url) Returns a Boolean value indicating whether the receiver is able to interpret and react to the given inputURL.booleanIf theAPSMediaPlayerActionDelegateimplementing object returnstruefrom the canRespondTo method for a certain URL, this method will be triggered to request effective execution.
-
Method Details
-
canRespondTo
Returns a Boolean value indicating whether the receiver is able to interpret and react to the given inputURL.- Parameters:
url- The URL that needs to be launched.- Returns:
trueif the object can interpret and react to the given inputURL,falseotherwise.
-
respondTo
If theAPSMediaPlayerActionDelegateimplementing object returnstruefrom the canRespondTo method for a certain URL, this method will be triggered to request effective execution.- Parameters:
url- The URL that needs to be launched.
-