SDLRPCNotificationNotification Class Reference

Section Contents

Overview

An NSNotification object that makes retrieving internal SDLRPCNotification data easier

notification

The notification within the userinfo dictionary

Objective-C

@property (nonatomic, copy, readonly) __kindof SDLRPCNotification *_Nonnull notification;

Swift

@NSCopying var notification: SDLRPCNotification { get }

-initWithName:object:rpcNotification:

Create an NSNotification object caontaining an SDLRPCNotification

Objective-C

- (nonnull instancetype)initWithName:(nonnull NSString *)name
                              object:(nullable id)object
                     rpcNotification:
                         (nonnull __kindof SDLRPCNotification *)notification;

Swift

init(name: String, object: Any?, rpcNotification notification: SDLRPCNotification)

Parameters

name

The NSNotification name

object

The NSNotification object

notification

The SDLRPCNotification payload

Return Value

The NSNotification

-isNotificationMemberOfClass:

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

Objective-C

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

Swift

func isNotificationMember(of aClass: AnyClass) -> Bool

Parameters

aClass

the class you are questioning

-isNotificationKindOfClass:

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

Objective-C

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

Swift

func isNotificationKind(of aClass: AnyClass) -> Bool

Parameters

aClass

the class you are questioning