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
SDLRPCNotificationNotification

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

View on GitHub.com
Previous Section Next Section