|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. This is needed on Nokia Asha OS 1.0 to maintain backward compatibility with Nokia Notification API offering in S40 legacy devices.
checkAndUpdateNapiEnabler(InstallListener, Displayable, MIDlet)
before trying to use Notifications APIInstallListener.ALREADY_EXISTS
is returned to the
InstallListener.installResult(int)
callback
Method Summary | |
---|---|
void |
cancel()
This API has no effect on Nokia Asha OS 1.0. |
void |
checkAndUpdateNapiEnabler(InstallListener listener,
javax.microedition.lcdui.Displayable nextDisplayable,
javax.microedition.midlet.MIDlet midlet)
Checks that is the Notification Enabler available and that is it's version correct. |
void |
checkNapiEnabler(InstallListener listener,
javax.microedition.midlet.MIDlet midlet)
Checks that is the Notification Enabler available and that is it's version correct. |
void |
showInstallerSoftNotification(javax.microedition.lcdui.Display display)
This API has no effect on Nokia Asha OS 1.0. |
void |
updateNapiEnabler(InstallListener listener,
javax.microedition.lcdui.Displayable nextDisplayable,
javax.microedition.midlet.MIDlet midlet)
Updates Notification Enabler to latest available version. |
Method Detail |
---|
void checkAndUpdateNapiEnabler(InstallListener listener, javax.microedition.lcdui.Displayable nextDisplayable, javax.microedition.midlet.MIDlet midlet)
Checks that is the Notification Enabler available and that is it's version correct.
NOTE: This function will always result in InstallListener.ALREADY_EXISTS
returned to the InstallListener.installResult(int)
callback.
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, javax.microedition.midlet.MIDlet midlet)
Checks that is the Notification Enabler available and that is it's version correct.
NOTE: This function will always result in InstallListener.ALREADY_EXISTS
returned to the InstallListener.installResult(int)
callback.
listener
- Listener for receiving checking resultmidlet
- The application MIDletvoid showInstallerSoftNotification(javax.microedition.lcdui.Display display)
This API has no effect on Nokia Asha OS 1.0. It is for backward compability with legacy S40 devices.
display
- Display of the MIDlet.void updateNapiEnabler(InstallListener listener, javax.microedition.lcdui.Displayable nextDisplayable, javax.microedition.midlet.MIDlet midlet)
Updates Notification Enabler to latest available version.
NOTE: This function will always result in InstallListener.ALREADY_EXISTS
returned to the InstallListener.installResult(int)
callback.
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |