This RPC allows a remote control type mobile application to simulate a hardware button press event.
@since RPC 4.5
Constructs a newly allocated SDLButtonPress object with the given parameters
- (nonnull instancetype)initWithButtonName:(nonnull SDLButtonName)buttonName
moduleType:(nonnull SDLModuleType)moduleType
moduleId:(nullable NSString *)moduleId
buttonPressMode:
(nonnull SDLButtonPressMode)buttonPressMode;
init(buttonName: SDLButtonName, moduleType: SDLModuleType, moduleId: String?, buttonPressMode: SDLButtonPressMode)
the name of the button
the module where the button should be pressed
the id of the module
indicates LONG or SHORT button press event
An instance of the SDLButtonPress class.
The module where the button should be pressed.
@property (nonatomic, strong) SDLModuleType _Nonnull moduleType;
var moduleType: SDLModuleType { get set }
Id of a module, published by System Capability.
Optional
@property (nonatomic, strong, nullable) NSString *moduleId;
var moduleId: String? { get set }
The name of supported RC climate or radio button.
@property (nonatomic, strong) SDLButtonName _Nonnull buttonName;
var buttonName: SDLButtonName { get set }
Indicates whether this is a LONG or SHORT button press event.
@property (nonatomic, strong) SDLButtonPressMode _Nonnull buttonPressMode;
var buttonPressMode: SDLButtonPressMode { get set }