You are reading 13.3.0. See this page in 13.4.1.
Titanium.Android.BigTextStyle
Extends Titanium.Proxy
Helper object for generating large-format notifications that include a lot of text.
If the platform does not provide large-format notifications, this style helper has no effect. The user will always see the normal notification view.
This style object attaches to a Titanium.Android.Notification object and modifies its behavior.
Examples
Big text style Example
var bigTextStyle = Titanium.Android.createBigTextStyle({
bigText: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
bigContentTitle: "Title for big text",
summaryText: "Summary for big text"
});
// Create big text style notification
var notification = Titanium.Android.createNotification({
contentTitle: 'Something Happened',
contentText : 'Click to return to the application.',
style: bigTextStyle,
time: Date.now()
});
// Send the notification.
Titanium.Android.NotificationManager.notify(1, notification);
Properties 6
Inherited from Titanium.Proxy
The name of the API that this proxy corresponds to.
bigContentTitle
StringOverrides Titanium.Android.Notification.contentTitle in the big form of the notification. This defaults to the value passed to Titanium.Android.Notification.contentTitle.
Default: <Titanium.Android.Notification.contentTitle>
bigText
StringSets the longer text to be displayed in the big form of the notification in place of the content text.
Inherited from Titanium.Proxy
Indicates if the proxy will bubble an event to its parent.
Default: true
Inherited from Titanium.Proxy
The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.
summaryText
StringSet the first line of text after the detail section in the big form of the notification.
Methods 4
Inherited from Titanium.Proxy
Adds the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to invoke when the event is fired. 4 fields
|
applyProperties
since 3.0.0Inherited from Titanium.Proxy
Applies the properties to the proxy.
| Parameters | Type | Description |
|---|---|---|
| props | Dictionary | A dictionary of properties to apply. |
Inherited from Titanium.Proxy
Fires a synthesized event to any registered listeners.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| event? | Dictionary | A dictionary of keys and values to add to the Titanium.Event object sent to the listeners. |
Inherited from Titanium.Proxy
Removes the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to remove. Must be the same function passed to 4 fields
|