Class UNNotificationContentExtensionMediaPlayPauseButtonType


  • public final class UNNotificationContentExtensionMediaPlayPauseButtonType
    extends java.lang.Object
    Constants indicating the type of media button to display. API-Since: 10.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long Default
      A standard play/pause button.
      static long None
      No media button.
      static long Overlay
      A partially transparent play/pause button that is layered on top of your media content.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • None

        public static final long None
        No media button. Specify this option when you don't want a media button. This is the default option. API-Since: 10.0
        See Also:
        Constant Field Values
      • Default

        public static final long Default
        A standard play/pause button. This button is always visible. When tapped, its appearance changes between the play and pause icons and triggers the appropriate play and pause actions. API-Since: 10.0
        See Also:
        Constant Field Values
      • Overlay

        public static final long Overlay
        A partially transparent play/pause button that is layered on top of your media content. This button draws a play icon over the content initially. When playback begins, the button disappears. Tapping the content again pauses playback and displays the play button again. API-Since: 10.0
        See Also:
        Constant Field Values