Interface PresentationUtilityProvider

  • All Implemented Interfaces:

    
    public interface PresentationUtilityProvider
    
                        

    The PresentationUtilityProvider is used to provide the necessary utilities for the UI SDK to function

    • 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
    • Constructor Detail

    • Method Detail

      • getCurrentActivity

         abstract Activity getCurrentActivity()

        Retrieves the current activity being shown to the user.

        Returns:

        the current activity being shown to the user if one exists, null otherwise

      • getCachedContent

         abstract InputStream getCachedContent(String cacheName, String key)

        Retrieves any cached content for the given cache name and key.

        Parameters:
        cacheName - the name of the cache to retrieve content from
        key - the key of the content to retrieve
        Returns:

        an InputStream containing the cached content if it exists, null otherwise.

      • openUri

         abstract Boolean openUri(String uri)

        Opens the given uri.

        Parameters:
        uri - the URI to open
        Returns:

        true if the URI was opened successfully, false otherwise.