Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

SDLRPCResponseNotification Class Reference

Section Contents

Overview

An NSNotification object that makes retrieving internal SDLRPCResponse data easier

response

The response within the userinfo dictionary

Objective-C

@property (readonly, copy, nonatomic) __kindof SDLRPCResponse *_Nonnull response;

Swift

@NSCopying var response: SDLRPCResponse { get }

-initWithName:object:rpcResponse:

Create an NSNotification object caontaining an SDLRPCResponse

Objective-C

- (nonnull instancetype)initWithName:(nonnull NSString *)name
                              object:(nullable id)object
                         rpcResponse:
                             (nonnull __kindof SDLRPCResponse *)response;

Swift

init(name: String, object: Any?, rpcResponse response: SDLRPCResponse)

Parameters

name

The NSNotification name

object

The NSNotification object

response

The SDLRPCResponse payload

Return Value

The NSNotification

-isResponseMemberOfClass:

Returns whether or not the containing response is equal to a class, not including subclasses.

Objective-C

- (BOOL)isResponseMemberOfClass:(nonnull Class)aClass;

Swift

func isResponseMember(of aClass: AnyClass) -> Bool

Parameters

aClass

the class you are questioning

-isResponseKindOfClass:

Returns whether or not the containing response is a kind of class, including subclasses.

Objective-C

- (BOOL)isResponseKindOfClass:(nonnull Class)aClass;

Swift

func isResponseKind(of aClass: AnyClass) -> Bool

Parameters

aClass

the class you are questioning

View on GitHub.com
Previous Section Next Section