Creates a full screen overlay containing a large block of formatted text that can be scrolled with buttons available.
If connecting to SDL Core v.6.0+, the scrollable message can be canceled programmatically using the cancelID
. On older versions of SDL Core, the scrollable message will persist until the user has interacted with the scrollable message or the specified timeout has elapsed.
@since SDL 2.0
Convenience init for creating a scrolling message with text.
- (nonnull instancetype)initWithMessage:(nonnull NSString *)message;
init(message: String)
Body of text that can include newlines and tabs
A SDLScrollableMessage object
Convenience init for creating a scrolling message with text and buttons.
- (nonnull instancetype)initWithMessage:(nonnull NSString *)message
timeout:(UInt16)timeout
softButtons:
(nullable NSArray<SDLSoftButton *> *)softButtons
cancelID:(UInt32)cancelID;
init(message: String, timeout: UInt16, softButtons: [SDLSoftButton]?, cancelID: UInt32)
Body of text that can include newlines and tabs
Indicates how long of a timeout from the last action (i.e. scrolling message resets timeout)
Buttons for the displayed scrollable message
An ID for this specific scrollable message to allow cancellation through the CancelInteraction
RPC
A SDLScrollableMessage object
Body of text that can include newlines and tabs.
String, Required, Max length 500 chars
@since SDL 2.0
@property (nonatomic, strong) NSString *_Nonnull scrollableMessageBody;
var scrollableMessageBody: String { get set }
App defined timeout. Indicates how long of a timeout from the last action (i.e. scrolling message resets timeout). If not set, a default value of 30 seconds is used by Core.
Integer, Optional, Min value: 1000, Max value: 65535, Default value: 30000
@since SDL 2.0
@property (nonatomic, strong, nullable) NSNumber<SDLInt> *timeout;
var timeout: (NSNumber & SDLInt)? { get set }
Buttons for the displayed scrollable message. If omitted on supported displays, only the system defined “Close” SoftButton will be displayed.
Array of SDLSoftButton, Optional, Array size: 0-8
Since SDL 2.0
@property (nonatomic, strong, nullable) NSArray<SDLSoftButton *> *softButtons;
var softButtons: [SDLSoftButton]? { get set }
An ID for this specific scrollable message to allow cancellation through the CancelInteraction
RPC.
Integer, Optional
See
SDLCancelInteraction @since SDL 6.0@property (nonatomic, strong, nullable) NSNumber<SDLInt> *cancelID;
var cancelID: (NSNumber & SDLInt)? { get set }