Conforms to NSObject
Declared in KGSoundNotification.h

Overview

KGSoundNotification protocol provides the ability to create JSON sound payload that can be sent to Apple Push Notification Service(APNS). The sound gets played when the notification is eventually delivered to the device by APNS.

Tasks

  • – fileName

    Returns the sound filename.

    required method
  • – setFileName:

    Sets the specified sound filename.

    required method
  • – toJSON

    Returns the JSON sound payload that is included in the overall payload to be sent to APNS.

    required method

Instance Methods

fileName

Returns the sound filename.

- (NSString *)fileName

Return Value

NSString representing the sound filename.

Declared In

KGSoundNotification.h

setFileName:

Sets the specified sound filename.

- (void)setFileName:(NSString *)fname

Parameters

fname

NSString representing the sound filename

Declared In

KGSoundNotification.h

toJSON

Returns the JSON sound payload that is included in the overall payload to be sent to APNS.

- (NSString *)toJSON

Return Value

NSString representing JSON sound payload

Declared In

KGSoundNotification.h