public interface IMDApplicationListener
Modifier and Type | Method and Description |
---|---|
void |
onAppDestroyed()
Will be called just before the application is destroyed.
|
void |
onAppDirectionalityChanged(int new_direction)
Will be called if the text directionality has been changed.
|
void |
onAppPaused()
Will be called when the application is going into the background.
|
void |
onAppResumed()
Will be called when the application is going back from the background to the foreground.
|
void |
onAppStarted()
Will be called after the application has been started.
|
void |
onSizeChanged(int width,
int height)
Will be called when the available size has been changed.
|
void |
onStartAppFromFile(java.lang.String mimeType,
java.lang.String absolutePath)
Will be called if this application was started by opening a file with registered MIME-type.
Important: If you wish to override this method and still use getStartFileMimeType() or
getStartFileAbsolutepath() , you must include a call to
super.onStartAppFromFile(mimeType, absolutePath) from your override. |
void |
onStartAppFromPushNotification(PushNotification message)
Will be called if this application was started by clicking on Push Notification from system bar.
|
void |
onStartAppFromURL(java.lang.String scheme,
java.lang.String url)
Will be called if this application was started from URL with registered URI scheme.
Important: If you wish to override this method and still use getStartScheme() or
getStartURL() , you must include a call to super.onStartAppFromURL(scheme, url)
from your override. |
void onAppStarted()
void onAppPaused()
void onAppResumed()
void onAppDestroyed()
void onStartAppFromURL(java.lang.String scheme, java.lang.String url)
getStartScheme()
or
getStartURL()
, you must include a call to super.onStartAppFromURL(scheme, url)
from your override.scheme
- - URI schemeurl
- - URL that caused this callvoid onStartAppFromFile(java.lang.String mimeType, java.lang.String absolutePath)
getStartFileMimeType()
or
getStartFileAbsolutepath()
, you must include a call to
super.onStartAppFromFile(mimeType, absolutePath)
from your override.mimeType
- - MIME-type of the fileabsolutePath
- - absolute path to the native file. This path can be used in Connector.openInputStream() to read file's content.void onStartAppFromPushNotification(PushNotification message)
message
- - the Push Notification that user has clicked onvoid onSizeChanged(int width, int height)
width
- - new withheight
- - new heightvoid onAppDirectionalityChanged(int new_direction)
new_direction
-