Interface PresentationUtilityProvider
-
- All Implemented Interfaces:
public interface PresentationUtilityProviderThe PresentationUtilityProvider is used to provide the necessary utilities for the UI SDK to function
-
-
Method Summary
Modifier and Type Method Description abstract ApplicationgetApplication()Retrieves the Application instance for the host application. abstract ActivitygetCurrentActivity()Retrieves the current activity being shown to the user. abstract InputStreamgetCachedContent(String cacheName, String key)Retrieves any cached content for the given cache name and key. abstract BooleanopenUri(String uri)Opens the given uri. -
-
Method Detail
-
getApplication
abstract Application getApplication()
Retrieves the Application instance for the host application.
- Returns:
the Application instance for the host application
-
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 fromkey- the key of the content to retrieve- Returns:
an InputStream containing the cached content if it exists, null otherwise.
-
-
-
-