Package com.zendesk.sdk.support
Interface SupportMvp.Presenter
-
- Enclosing interface:
- SupportMvp
public static interface SupportMvp.Presenter
Defines behaviour for presenter operations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
initWithBundle(Bundle savedInstanceState)
Initialises the presenter with data from the providedBundle
, and determines the first screen to show.void
onErrorWithRetry(SupportMvp.ErrorType errorType, RetryAction action)
Fired when a error has been encountered when loading help content from the network, but where retrying is supportedvoid
onLoad()
Fired when content from Help has been loaded from the networkvoid
onPause()
Informs the presenter that the onPause method of the View has been called.void
onResume(SupportMvp.View view)
Informs the presenter that the onResume method of the View has been called.void
onSearchSubmit(java.lang.String query)
Fired when a search has been requested from the UIboolean
shouldShowConversationsMenuItem()
Determines whether the conversations menu item should be shown.boolean
shouldShowSearchMenuItem()
Determines whether the search menu item should be shown.
-
-
-
Method Detail
-
onResume
void onResume(SupportMvp.View view)
Informs the presenter that the onResume method of the View has been called.- Parameters:
view
- The resumed View.
-
onPause
void onPause()
Informs the presenter that the onPause method of the View has been called.
-
onSearchSubmit
void onSearchSubmit(java.lang.String query)
Fired when a search has been requested from the UI- Parameters:
query
- The query text
-
onLoad
void onLoad()
Fired when content from Help has been loaded from the network
-
onErrorWithRetry
void onErrorWithRetry(SupportMvp.ErrorType errorType, RetryAction action)
Fired when a error has been encountered when loading help content from the network, but where retrying is supported- Parameters:
errorType
- The type of error that occurredaction
- The action which will be invoked when retry is attempted
-
initWithBundle
void initWithBundle(Bundle savedInstanceState)
Initialises the presenter with data from the providedBundle
, and determines the first screen to show. This could be a screen with Help Center content, the conversations screen, or the contact Zendesk screen.- Parameters:
savedInstanceState
- The saved instance state from the view
-
shouldShowConversationsMenuItem
boolean shouldShowConversationsMenuItem()
Determines whether the conversations menu item should be shown.- Returns:
- true if the conversations menu item should be shown, false otherwise
-
shouldShowSearchMenuItem
boolean shouldShowSearchMenuItem()
Determines whether the search menu item should be shown.- Returns:
- true if the search menu item should be shown, false otherwise
-
-