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
SDLFunctionID

SDLFunctionID Class Reference

Section Contents

Overview

A function ID for an SDL RPC

+sharedInstance

The shared object for pulling function id information

Objective-C

+ (nonnull instancetype)sharedInstance;

Swift

class func sharedInstance() -> Self

-functionNameForId:

Gets the function name for a given SDL RPC function ID

Objective-C

- (nullable SDLRPCFunctionName)functionNameForId:(UInt32)functionID;

Swift

func functionName(forId functionID: UInt32) -> SDLRPCFunctionName?

Parameters

functionID

A function ID @returns An SDLRPCFunctionName

-functionIdForName:

Gets the function ID for a given SDL RPC function name

Objective-C

- (nullable NSNumber<SDLInt> *)functionIdForName:
    (nonnull SDLRPCFunctionName)functionName;

Swift

func functionId(forName functionName: SDLRPCFunctionName) -> (NSNumber & SDLInt)?

Parameters

functionName

The RPC function name

View on GitHub.com
Previous Section Next Section