com.nokia.notifications.installer
public interface NotificationsEnablerInstaller
This interface is meant for checking Notification Enabler availability and for handling downloading, installation and launching of the enabler if an update is required.
checkAndUpdateNapiEnabler(InstallListener, Displayable, MIDlet)
before trying to use the Nokia Notifications APIInstallListener.ALREADY_EXISTS
is returned to the
InstallListener.installResult(int)
callbackModifier and Type | Method and Description |
---|---|
void |
cancel()
This API cancels the update process.
|
void |
checkAndUpdateNapiEnabler(InstallListener listener,
Displayable nextDisplayable,
MIDlet midlet)
Checks if the Notification Enabler available and if the
version is up-to-date.In case, update for the Notification
Enabler is available, it will trigger the update process.
|
void |
checkNapiEnabler(InstallListener listener,
MIDlet midlet)
Checks if the Notification Enabler available and if the
version is up-to-date.
|
void |
showInstallerSoftNotification(Display display)
This API has no effect on Nokia SDK 3.0.
|
void |
updateNapiEnabler(InstallListener listener,
Displayable nextDisplayable,
MIDlet midlet)
Updates Notification Enabler to latest available version.
|
void checkAndUpdateNapiEnabler(InstallListener listener, Displayable nextDisplayable, MIDlet midlet)
Checks if the Notification Enabler available and if the version is up-to-date.In case, update for the Notification Enabler is available, it will trigger the update process.
NOTE: This function will always give result in callback
InstallListener.installResult(int)
.
listener
- Listener for receiving install resultnextDisplayable
- This displayable will be shown if update procedure
starts but ends in error. If null, then installer will use a
temporary displayable.midlet
- The application MIDletvoid checkNapiEnabler(InstallListener listener, MIDlet midlet)
Checks if the Notification Enabler available and if the version is up-to-date.
NOTE: This function will always give result in callback
InstallListener.installResult(int)
.
listener
- Listener for receiving checking resultmidlet
- The application MIDletvoid showInstallerSoftNotification(Display display)
This API has no effect on Nokia SDK 3.0. It is for backward compability with Series 40 devices.
display
- Display of the MIDlet.void updateNapiEnabler(InstallListener listener, Displayable nextDisplayable, MIDlet midlet)
Updates Notification Enabler to latest available version.
NOTE: This function will always give result in callback
InstallListener.installResult(int)
.
listener
- Listener for receiving install resultnextDisplayable
- This displayable will be shown if update procedure
starts but ends in error. If null, then installer will use a
temporary displayable.midlet
- The application MIDletvoid cancel()
This API cancels the update process.