Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
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 (readwrite, strong, nonatomic) NSString *_Nonnull text;

Swift

var text: String { get set }

image

Image for VR Help item

Optional

Objective-C

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

Swift

var image: SDLImage? { get set }

position

Position to display item in VR Help list

Required

Objective-C

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

Swift

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