Inherits from NSObject
Conforms to NSCopying
Declared in RACEvent.h

Overview

This corresponds to the Notification class in Rx.

Tasks

  • + completedEvent

    Returns a singleton RACEvent representing the completed event.

  • + eventWithError:

    Returns a new event of type RACEventTypeError, containing the given error.

  • + eventWithValue:

    Returns a new event of type RACEventTypeNext, containing the given value.

  •   eventType

    The type of event represented by the receiver.

    property
  •   finished

    Returns whether the receiver is of type RACEventTypeCompleted or RACEventTypeError.

    property
  •   error

    The error associated with an event of type RACEventTypeError. This will be nil for all other event types.

    property
  •   value

    The value associated with an event of type RACEventTypeNext. This will be nil for all other event types.

    property

Properties

error

@property (nonatomic, strong, readonly) NSError *error
Discussion

The error associated with an event of type RACEventTypeError. This will be nil for all other event types.

Declared In

RACEvent.h

eventType

@property (nonatomic, assign, readonly) RACEventType eventType
Discussion

The type of event represented by the receiver.

Declared In

RACEvent.h

finished

@property (nonatomic, getter=isFinished, assign, readonly) BOOL finished
Discussion

Returns whether the receiver is of type RACEventTypeCompleted or RACEventTypeError.

Declared In

RACEvent.h

value

@property (nonatomic, strong, readonly) id value
Discussion

The value associated with an event of type RACEventTypeNext. This will be nil for all other event types.

Declared In

RACEvent.h

Class Methods

completedEvent

+ (instancetype)completedEvent
Discussion

Returns a singleton RACEvent representing the completed event.

Declared In

RACEvent.h

eventWithError:

+ (instancetype)eventWithError:(NSError *)error
Discussion

Returns a new event of type RACEventTypeError, containing the given error.

Declared In

RACEvent.h

eventWithValue:

+ (instancetype)eventWithValue:(id)value
Discussion

Returns a new event of type RACEventTypeNext, containing the given value.

Declared In

RACEvent.h