Interface IChannelUIRenderer

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void init(ChannelFragment fragment, NCExtension extension, ChannelType channelType, String targetId) Initializes each UI renderer after entering the channel page.
      abstract boolean handlePageEvent(PageEvent event) Callback for channel page rendering events.
      abstract boolean onBackPressed() Callback when the back button is pressed.
      abstract void onDestroy() Callback when leaving the channel page.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • init

         abstract void init(ChannelFragment fragment, NCExtension extension, ChannelType channelType, String targetId)

        Initializes each UI renderer after entering the channel page.

        Parameters:
        fragment - the channel fragment
        extension - the channel extension bar
        channelType - the channel type
        targetId - the channel id
      • handlePageEvent

         abstract boolean handlePageEvent(PageEvent event)

        Callback for channel page rendering events.

        Parameters:
        event - the rendering event
        Returns:

        whether the event was consumed. true means this renderer consumed the event and the channel page will not process it further; false means the channel page handles it by default.

      • onBackPressed

         abstract boolean onBackPressed()

        Callback when the back button is pressed.

        Returns:

        whether the event was consumed

      • onDestroy

         abstract void onDestroy()

        Callback when leaving the channel page.