public abstract class IntentFactory
extends java.lang.Object
| Constructor and Description |
|---|
IntentFactory() |
| Modifier and Type | Method and Description |
|---|---|
android.content.Intent |
geIntentForPageUri(android.content.Context context,
android.net.Uri pageUri)
Loads an intent from a Uri by finding the
PageDescriptor in the App model defined
in com.cube.storm.UiSettings#getApp(). |
FragmentIntent |
getFragmentIntentForPage(Page pageData)
Deprecated.
You should not load a fragment intent from an already-instantiated page, use
getFragmentIntentForPageDescriptor(com.cube.storm.ui.model.descriptor.PageDescriptor) instead
Returns a fragment intent for a specific page |
FragmentIntent |
getFragmentIntentForPageDescriptor(PageDescriptor pageDescriptor)
Loads a fragment intent from a page descriptor by finding the model of the page type defined in
com.cube.storm.ui.model.descriptor.PageDescriptor#getType() in the
View enum. |
FragmentIntent |
getFragmentIntentForPageUri(android.net.Uri pageUri)
Loads a fragment intent from a Uri by finding the
PageDescriptor in the App model defined
in com.cube.storm.UiSettings#getApp(). |
android.content.Intent |
getIntentForPage(android.content.Context context,
Page pageData)
Deprecated.
You should not load an intent from an already-instantiated page, use
getIntentForPageDescriptor(android.content.Context, com.cube.storm.ui.model.descriptor.PageDescriptor) instead
Returns an activity intent for a specific page |
android.content.Intent |
getIntentForPageDescriptor(android.content.Context context,
PageDescriptor pageDescriptor)
Loads an intent from a page descriptor by finding the model of the page type defined in
com.cube.storm.ui.model.descriptor.PageDescriptor#getType() in the
View enum. |
@Deprecated public FragmentIntent getFragmentIntentForPage(Page pageData)
getFragmentIntentForPageDescriptor(com.cube.storm.ui.model.descriptor.PageDescriptor) instead
Returns a fragment intent for a specific pagepageData - The page to use to decide the fragment that is used@Deprecated
public android.content.Intent getIntentForPage(android.content.Context context,
Page pageData)
getIntentForPageDescriptor(android.content.Context, com.cube.storm.ui.model.descriptor.PageDescriptor) instead
Returns an activity intent for a specific pagepageData - The page to use to decide the activity that is usedpublic FragmentIntent getFragmentIntentForPageUri(android.net.Uri pageUri)
PageDescriptor in the App model defined
in com.cube.storm.UiSettings#getApp(). It will load the page from disk if com.cube.storm.UiSettings#getApp() is null.pageUri - The page uripublic android.content.Intent geIntentForPageUri(android.content.Context context,
android.net.Uri pageUri)
PageDescriptor in the App model defined
in com.cube.storm.UiSettings#getApp(). It will load the page from disk if com.cube.storm.UiSettings#getApp() is null.pageUri - The page uripublic FragmentIntent getFragmentIntentForPageDescriptor(PageDescriptor pageDescriptor)
com.cube.storm.ui.model.descriptor.PageDescriptor#getType() in the
View enum.
You should override this method to handle custom uris and casespageDescriptor - The page descriptor to load frompublic android.content.Intent getIntentForPageDescriptor(android.content.Context context,
PageDescriptor pageDescriptor)
com.cube.storm.ui.model.descriptor.PageDescriptor#getType() in the
View enum.
You should override this method to handle custom uris and casescontext - The context used to create the intentpageDescriptor - The page descriptor to load from