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 Type
    Method
    Description
    boolean
    Returns a Boolean value indicating whether the receiver is able to interpret and react to the given input URL.
    boolean
    If the APSMediaPlayerActionDelegate implementing object returns true from the canRespondTo method for a certain URL, this method will be triggered to request effective execution.
  • Method Details

    • canRespondTo

      boolean canRespondTo(String url)
      Returns a Boolean value indicating whether the receiver is able to interpret and react to the given input URL.
      Parameters:
      url - The URL that needs to be launched.
      Returns:
      true if the object can interpret and react to the given input URL, false otherwise.
    • respondTo

      boolean respondTo(String url)
      If the APSMediaPlayerActionDelegate implementing object returns true from 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.