Inherits from NSObject
Conforms to KGAlertNotification
Declared in KGSimpleAlertNotification.h

Overview

KGSimpleAlertNotification is a concrete class that conforms to the KGAlertNotification protocol. As the name indicates, it can be used to create JSON payload for simple alert notifications that do not require localization. This class does provide the ability to localize the action button’s label and the ability to render an image as part of the alert dialog.

Tasks

Instance Methods

body

Returns the body of the alert message.

- (NSString *)body

Return Value

NSString representing the body of the message

Declared In

KGSimpleAlertNotification.h

initWithBody:

Creates an instance of KGSimpleAlertNotification with just the body of the alert that includes the message.

- (id)initWithBody:(NSString *)body

Parameters

body

NSString representing the alert message

Return Value

id instance of KGSimpleAlertNotification class

Declared In

KGSimpleAlertNotification.h

initWithBody:actionKey:

Creates an instance of KGSimpleAlertNotification with the body of the alert and the resource key for the action button’s label.

- (id)initWithBody:(NSString *)body actionKey:(NSString *)actionLocKey

Parameters

body

NSString representing the alert message

actionLocKey

NSString representing the resource key for the action button’s label

Return Value

id instance of KGSimpleAlertNotification class

Declared In

KGSimpleAlertNotification.h

initWithBody:actionKey:image:

Creates an instance of KGSimpleAlertNotification with the body of the alert, the resource key for the action button’s label, and the image for the alert dialog.

- (id)initWithBody:(NSString *)body actionKey:(NSString *)actionLocKey image:(NSString *)filename

Parameters

body

NSString representing the alert message

actionLocKey

NSString representing the resource key for the action button’s label

filename

NSString representing image filename

Return Value

id instance of KGSimpleAlertNotification class

Declared In

KGSimpleAlertNotification.h

setBody:

Sets the body of the alert message.

- (void)setBody:(NSString *)body

Parameters

body

NSString representing the alert message

Declared In

KGSimpleAlertNotification.h