Sets whether the notification sound and/or vibration should sound each time the notification is sent, even if it has not been cancelled before.
AutoCancelAsBoolean [write only]
Sets whether the notification will be cancelled automatically when the user click on it
Cancels the notification with the given Id
DefaultLEDAsBoolean [write only]
Sets whether the notification will Flash the LED (if available) using the Default settings.
NOTE: Setting to True will over rule the CustomLED
Example: n.DefaultLED = False
DefaultSoundAsBoolean [write only]
Sets whether the notification will play a sound using the default settings Example: n.DefaultSound = True
DefaultVibrateAsBoolean [write only]
Sets whether the notification will vibrate using the default settings
NOTE: Setting to True will overrule the CustomVibrate
Example: n.DefaultVibrate = True
Initializes the notification setting default values of: LED = Enabled Sound = Enabled Vibration = Enabled Layout - Sets the layout to be used. Options: 1 = Default notification layout (Two Text fields plus Icon) 2 = Two Text fields plus One Image 3 = One Text field plus One Image plus One Progress Bar 4 = Two Text fields ONLY 5 = User Defined. Add your xml file to the res/layout. Name it mylayout.xml and make it read only.
Example: cn.Initialize(2) 'Initializes the notification and sets the layout to Two Text fields plus One Image
InsistentAsBoolean [write only]
Sets whether the sound will play repeatedly until the user opens the notification screen
NoClearAsBoolean [write only]
Sets whether the notification should NOT be cancelled when the user clicks the Clear All button. Example:
Dim cn as CustomNotification
cn.NoClear = True 'Notification will not clear.
Displays the notification. Id: - The notification Id. This can be used later to update the notification (by calling notify again with the same Id) or cancel it.
Gets or Sets a number that will be displayed over the icon. This is useful to represent multiple events in a single notification.
OnGoingEventAsBoolean [write only]
Set if the notification is in reference to an ongoing event, e.g. a phone call. Do not set for notifications that are in reference to something that happened at a particular point in time.
setCustomLED (LightOnAsInt, LightOffAsInt)
Set a custom timing for the notification Light. Timings are in milliseconds.
NOTE: DefaultLED must be set to False.
Example: Dim cn as CustomNotification
cn.DefaultLED = False cn.CustomLED(300, 1000)
Sets a custom sound to be played on new notification
Sets A custom vibrate sequence for notification Vibration The Array of values can be as long as you wish. The First Value is the pause before vibration starts, then it's ON, OFF, ON, OFF, etc.
NOTE: DefaultVibrate must be set to False
Example: Dim cn as CustomNotification Dim v() as Long
v = Array as Long(0, 100, 200, 300, 400) cn.DefaultVibrate = False cn.CustomVibrate(v)
Sets the icon to be displayed. The image file should manually copied to the Objects\res\drawable\ folder and set to read-only. The file name is case sensitive and should not contain the file extension. You can use "icon" to use the applications icon.