Class: ActionPush::Ios::Alert
- Inherits:
-
Object
- Object
- ActionPush::Ios::Alert
- Defined in:
- lib/action_push/ios/alert.rb
Instance Attribute Summary collapse
-
#action_loc_key ⇒ Object
- String, nil
-
If a string is specified, the system displays an alert that includes the Close and View buttons.
-
#body ⇒ Object
- String
-
The text of the alert message.
-
#launch_image ⇒ Object
- String
-
The filename of an image file in the app bundle, with or without the filename extension.
-
#loc_args ⇒ Object
- Array<String>
-
Variable string values to appear in place of the format specifiers in loc-key.
-
#loc_key ⇒ Object
- String
-
A key to an alert-message string in a Localizable.strings file for the current localization (which is set by the user’s language preference).
-
#title ⇒ Object
- String
-
A short string describing the purpose of the notification.
-
#title_loc_args ⇒ Object
- Array<String>, nil
-
Variable string values to appear in place of the format specifiers in title-loc-key.
-
#title_loc_key ⇒ Object
- String, nil
-
The key to a title string in the Localizable.strings file for the current localization.
Instance Attribute Details
#action_loc_key ⇒ Object
- String, nil
-
If a string is specified, the system displays an alert that includes the Close and View buttons. The string is used as a key to get a localized string in the current localization to use for the right button’s title instead of “View”
32 33 34 |
# File 'lib/action_push/ios/alert.rb', line 32 def action_loc_key @action_loc_key end |
#body ⇒ Object
- String
-
The text of the alert message
16 17 18 |
# File 'lib/action_push/ios/alert.rb', line 16 def body @body end |
#launch_image ⇒ Object
- String
-
The filename of an image file in the app bundle, with or without the filename extension. The image is used as the launch image when users tap the action button or move the action slider
47 48 49 |
# File 'lib/action_push/ios/alert.rb', line 47 def launch_image @launch_image end |
#loc_args ⇒ Object
- Array<String>
-
Variable string values to appear in place of the format specifiers in loc-key.
42 43 44 |
# File 'lib/action_push/ios/alert.rb', line 42 def loc_args @loc_args end |
#loc_key ⇒ Object
- String
-
A key to an alert-message string in a Localizable.strings file for the current localization (which is set by the user’s language preference). The key string can be formatted with %@ and %n$@ specifiers to take the variables specified in the loc-args array
38 39 40 |
# File 'lib/action_push/ios/alert.rb', line 38 def loc_key @loc_key end |
#title ⇒ Object
- String
-
A short string describing the purpose of the notification. Apple Watch displays this string as part of the notification interface. This string is displayed only briefly and should be crafted so that it can be understood quickly.
12 13 14 |
# File 'lib/action_push/ios/alert.rb', line 12 def title @title end |
#title_loc_args ⇒ Object
- Array<String>, nil
-
Variable string values to appear in place of the format specifiers in title-loc-key
26 27 28 |
# File 'lib/action_push/ios/alert.rb', line 26 def title_loc_args @title_loc_args end |
#title_loc_key ⇒ Object
- String, nil
-
The key to a title string in the Localizable.strings file for the current localization. The key string can be formatted with %@ and %n$@ specifiers to take the variables specified in the title-loc-args array
22 23 24 |
# File 'lib/action_push/ios/alert.rb', line 22 def title_loc_key @title_loc_key end |