Objective-C API Library Reference  4.3.0-42-g45f162a
 All Classes Functions Typedefs Properties Pages
Public Functions | List of all members
PWSessionStorageChangedEventArgs Class Reference

The PWSessionStorageChangedEventArgs class provides arguments for events related to changes to session storage.

Public Functions

(SessionStorageMessageType) - getChangeType
 
(NSString *) - getKey
 
(NSString *) - getNewValue
 
(instancetype) - initWithEventArgs:newValue:changeType:
 
(BOOL) - isDeletion
 
(BOOL) - isSet
 

Methods Descriptions

- (SessionStorageMessageType) getChangeType

Returns the content of the "changeType" argument of the event object. This is the type of change, such as insertion or deletion.

- (NSString*) getKey

Returns the content of the "key" argument of the event object. This is the key in the session storage that changed, triggering the event.

- (NSString*) getNewValue

Returns the content of the "newValue" argument of the event object. This is the value of the element at the specified path, after the change occurred.

- (instancetype) initWithEventArgs: (NSString *)  key
newValue: (NSString *)  newValue
changeType: (SessionStorageMessageType)  changeType 

Initalizes a new instance of PWSessionStorageChangedEventArgs.

Parameters
keyThe key in session storage where the change occurred.
newValueThe value at the specified path after the change.
changeTypeThe type of change.
- (BOOL) isDeletion

Returns a Boolean value that indicates whether the change was a deletion.

- (BOOL) isSet

Returns a Boolean value that indicates whether the change was a set (insert or change).