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
SDLRPCRequestNotification

SDLRPCRequestNotification Class Reference

Section Contents

Overview

A NSNotification object that makes retrieving internal SDLRPCRequest data easier

request

The request to be included in the userinfo dictionary

Objective-C

@property (nonatomic, copy, readonly) __kindof SDLRPCRequest *_Nonnull request;

Swift

@NSCopying var request: SDLRPCRequest { get }

-initWithName:object:rpcRequest:

Create an NSNotification object containing an SDLRPCRequest

Objective-C

- (nonnull instancetype)initWithName:(nonnull NSString *)name
                              object:(nullable id)object
                          rpcRequest:(nonnull __kindof SDLRPCRequest *)request;

Swift

init(name: String, object: Any?, rpcRequest request: SDLRPCRequest)

Parameters

name

The NSNotification name

object

The NSNotification object

request

The SDLRPCRequest payload

Return Value

The NSNotification

-isRequestMemberOfClass:

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

Objective-C

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

Swift

func isRequestMember(of aClass: AnyClass) -> Bool

Parameters

aClass

the class you are questioning

-isRequestKindOfClass:

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

Objective-C

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

Swift

func isRequestKind(of aClass: AnyClass) -> Bool

Parameters

aClass

the class you are questioning

View on GitHub.com
Previous Section Next Section