FirebaseArrayDelegate Protocol Reference

Conforms to NSObject
Declared in FirebaseArrayDelegate.h

Overview

A protocol to allow instances of FirebaseArray to raise events through a delegate. Raises all Firebase events except FEventTypeValue.

– childAdded:atIndex:

Delegate method which is called whenever an object is added to a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildAdded event being raised.

- (void)childAdded:(id)object atIndex:(NSUInteger)index

Parameters

object

The object added to the FirebaseArray

index

The index the child was added at

Discussion

Delegate method which is called whenever an object is added to a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildAdded event being raised.

Declared In

FirebaseArrayDelegate.h

– childChanged:atIndex:

Delegate method which is called whenever an object is chinged in a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildChanged event being raised.

- (void)childChanged:(id)object atIndex:(NSUInteger)index

Parameters

object

The object that changed in the FirebaseArray

index

The index the child was changed at

Discussion

Delegate method which is called whenever an object is chinged in a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildChanged event being raised.

Declared In

FirebaseArrayDelegate.h

– childRemoved:atIndex:

Delegate method which is called whenever an object is removed from a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildRemoved event being raised.

- (void)childRemoved:(id)object atIndex:(NSUInteger)index

Parameters

object

The object removed from the FirebaseArray

index

The index the child was removed at

Discussion

Delegate method which is called whenever an object is removed from a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildRemoved event being raised.

Declared In

FirebaseArrayDelegate.h

– childMoved:fromIndex:toIndex:

Delegate method which is called whenever an object is moved within a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildMoved event being raised.

- (void)childMoved:(id)object fromIndex:(NSUInteger)fromIndex toIndex:(NSUInteger)toIndex

Parameters

object

The object that has moved locations in the FirebaseArray

fromIndex

The index the child is being moved from

toIndex

The index the child is being moved to

Discussion

Delegate method which is called whenever an object is moved within a FirebaseArray. On a FirebaseArray synchronized to a Firebase reference, this corresponds to an FEventTypeChildMoved event being raised.

Declared In

FirebaseArrayDelegate.h