newInstance

final ClipShareFragment newInstance(Integer tvChannelId, String tvChannelLogoUrl, String tvChannelName, String epgUnitNameFallback, Long snapTimestamp, String snapscreenAuthorizationHeader, ClipShareFragmentResultListener listener)

Helper method to create a new instance of a ClipShareFragment.

  • tvChannelId the id of the TV channel - via SportEventSnapResultEntry.TvChannel.id

  • tvChannelLogoURL the logo of the TV channel - via SportEventSnapResultEntry.TvChannel.logoURL

  • tvChannelName the name of the TV channel - via SportEventSnapResultEntry.TvChannel.name

  • epgUnitNameFallback the fallback in case no epg unit title is available - recommended SportEventSnapResultEntry.SportEvent.league ?? SportEventSnapResultEntry.SportEvent.tournament ?? SportEventSnapResultEntry.SportEvent.sport

  • snapTimestamp the snap timestamp - via SportEventSnapResultEntry.timestamp

  • snapscreenAuthorizationHeader - the authorization header as received from Snapscreen.instance.authorizationHeader

  • listener the listener you want to receive callbacks about clip sharing