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