Package com.adobe.marketing.mobile.util
Class DefaultPresentationUtilityProvider
-
- All Implemented Interfaces:
-
com.adobe.marketing.mobile.services.ui.PresentationUtilityProvider
public final class DefaultPresentationUtilityProvider implements PresentationUtilityProvider
Default implementation of PresentationUtilityProvider that uses the ServiceProvider to relay the calls to the appropriate services.
-
-
Constructor Summary
Constructors Constructor Description DefaultPresentationUtilityProvider()
-
Method Summary
Modifier and Type Method Description ApplicationgetApplication()Retrieves the Application instance for the host application. ActivitygetCurrentActivity()Retrieves the current activity being shown to the user. InputStreamgetCachedContent(String cacheName, String key)Retrieves any cached content for the given cache name and key. BooleanopenUri(String uri)Opens the given uri. -
-
Method Detail
-
getApplication
Application getApplication()
Retrieves the Application instance for the host application.
- Returns:
the Application instance for the host application
-
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 fromkey- the key of the content to retrieve- Returns:
an InputStream containing the cached content if it exists, null otherwise.
-
-
-
-