Class DefaultPresentationUtilityProvider

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • DefaultPresentationUtilityProvider

        DefaultPresentationUtilityProvider()
    • Method Detail

      • getCurrentActivity

         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

         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

         Boolean openUri(String uri)

        Opens the given uri.

        Parameters:
        uri - the URI to open
        Returns:

        true if the URI was opened successfully, false otherwise.