Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
iOS Documentation
SDLVRHelpItem

SDLVRHelpItem Class Reference

Section Contents

Overview

A help item for voice commands, used locally in interaction lists and globally

-initWithText:image:

Convenience init to create a VR help item with the following parameters

Objective-C

- (nonnull instancetype)initWithText:(nonnull NSString *)text
                               image:(nullable SDLImage *)image;

Swift

init(text: String, image: SDLImage?)

Parameters

text

Text to display for VR Help item

image

Image for VR Help item

Return Value

An SDLVRHelpItem object

-initWithText:image:position:

Convenience init to create a VR help item with all parameters

Objective-C

- (nonnull instancetype)initWithText:(nonnull NSString *)text
                               image:(nullable SDLImage *)image
                            position:(UInt8)position;

Swift

init(text: String, image: SDLImage?, position: UInt8)

Parameters

text

Text to display for VR Help item

image

Image for VR Help item

position

Position to display item in VR Help list

Return Value

An SDLVRHelpItem object

text

Text to display for VR Help item

Required

Objective-C

@property (nonatomic, strong) NSString *_Nonnull text;

Swift

var text: String { get set }

image

Image for VR Help item

Optional

Objective-C

@property (nonatomic, strong, nullable) SDLImage *image;

Swift

var image: SDLImage? { get set }

position

Position to display item in VR Help list

Required

Objective-C

@property (nonatomic, strong) NSNumber<SDLInt> *_Nonnull position;

Swift

var position: NSNumber & SDLInt { get set }
View on GitHub.com
Previous Section Next Section