public class NotificationManager extends EMDKBase
public class MainActivity extends Activity implements EMDKListener { protected void onCreate(Bundle savedInstanceState) { //.. EMDKResults results = EMDKManager.getEMDKManager(getApplicationContext(), this); } public void onOpened(EMDKManager emdkManager) { this.emdkManager = emdkManager; } //... notificationManager = (NotificationManager) emdkManager.getInstance(FEATURE_TYPE.NOTIFICATION); //... NotificationDevice notificationDevice = notificationManager.getDevice(DeviceIdentifier.DEFAULT) notificationDevice.enable(); //... notificationDevice.disable(); //.. EMDKManager.release(FEATURE_TYPE.NOTIFICATION); }
Modifier and Type | Class and Description |
---|---|
static class |
NotificationManager.DeviceIdentifier
Defines specific notification devices of each type.
|
Modifier and Type | Method and Description |
---|---|
NotificationDevice |
getDevice(DeviceInfo deviceInfo)
Returns the notification device based on the device information provided.
|
NotificationDevice |
getDevice(NotificationManager.DeviceIdentifier deviceIdentifier)
Returns the notification device based on the device identifier provided.
|
List<DeviceInfo> |
getSupportedDevicesInfo()
Returns list of supported notification devices information.
|
public List<DeviceInfo> getSupportedDevicesInfo()
public NotificationDevice getDevice(DeviceInfo deviceInfo) throws NotificationException
deviceInfo
- The device info specifies which notification device the application wants.NotificationException
public NotificationDevice getDevice(NotificationManager.DeviceIdentifier deviceIdentifier) throws NotificationException
deviceIdentifier
- The device identifier specifies which notification device the application wants.NotificationException