Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

SDLButtonPress Class Reference

Section Contents

Overview

This RPC allows a remote control type mobile application to simulate a hardware button press event.

-initWithButtonName:moduleType:

Undocumented

Objective-C

- (instancetype)initWithButtonName:(SDLButtonName)buttonName moduleType:(SDLModuleType) moduleType;

Swift

init(buttonName: SDLButtonName, moduleType: SDLModuleType)

moduleType

The module where the button should be pressed.

Objective-C

@property (readwrite, strong, nonatomic) SDLModuleType _Nonnull moduleType;

Swift

var moduleType: SDLModuleType { get set }

buttonName

The name of supported RC climate or radio button.

Objective-C

@property (readwrite, strong, nonatomic) SDLButtonName _Nonnull buttonName;

Swift

var buttonName: SDLButtonName { get set }

buttonPressMode

Indicates whether this is a LONG or SHORT button press event.

Objective-C

@property (readwrite, strong, nonatomic)
    SDLButtonPressMode _Nonnull buttonPressMode;

Swift

var buttonPressMode: SDLButtonPressMode { get set }
View on GitHub.com
Previous Section Next Section