SDLRPCPermissionStatus Class Reference

Section Contents

Overview

An object containing the result status of a permission element request

rpcName

Name of the individual RPC.

Required

Objective-C

@property (nonatomic, strong, readonly) SDLRPCFunctionName _Nonnull rpcName;

Swift

var rpcName: SDLRPCFunctionName { get }

rpcAllowed

Whether or not the RPC is allowed.

Objective-C

@property (nonatomic, readonly, getter=isRPCAllowed) BOOL rpcAllowed;

Swift

var isRPCAllowed: Bool { get }

rpcParameters

Holds a dictionary of RPC parameters and objects of an NSNumber specifying if that RPC parameter is currently allowed

Objective-C

@property (nonatomic, strong, readonly, nullable) NSDictionary<NSString *, NSNumber *> *rpcParameters;

Swift

var rpcParameters: [String : NSNumber]? { get }

-initWithRPCName:isRPCAllowed:rpcParameters:

Initializes a SDLRPCPermissionStatus object.

Objective-C

- (nonnull instancetype)initWithRPCName:(nonnull SDLRPCFunctionName)rpcName
                           isRPCAllowed:(BOOL)isRPCAllowed
                          rpcParameters:
                              (nullable NSDictionary<NSString *, NSNumber *> *)
                                  rpcParameters;

Swift

init(rpcName: SDLRPCFunctionName, isRPCAllowed: Bool, rpcParameters: [String : NSNumber]?)

Parameters

rpcName

The name of the RPC.

isRPCAllowed

The permission status for the RPC.

rpcParameters

A dictionary of RPC parameters and objects of an NSNumber specifying if that RPC parameter is currently allowed

Return Value

An instance of the SDLRPCPermissionStatus class.