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
SDLRPCResponseNotification

SDLRPCResponseNotification Class Reference

Section Contents

Overview

A NSNotification object that makes retrieving internal SDLRPCResponse data easier

response

The response to be included within the userinfo dictionary

Objective-C

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

Swift

@NSCopying var response: SDLRPCResponse { get }

-initWithName:object:rpcResponse:

Create an NSNotification object containing 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