Inherits from NSObject
Conforms to NSCopying
Declared in RACEvent.h

Overview

Represents an event sent by a RACSignal.

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

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

@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

The type of event represented by the receiver.

@property (nonatomic, assign, readonly) RACEventType eventType

Discussion

The type of event represented by the receiver.

Declared In

RACEvent.h

finished

Returns whether the receiver is of type RACEventTypeCompleted or RACEventTypeError.

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

Discussion

Returns whether the receiver is of type RACEventTypeCompleted or RACEventTypeError.

Declared In

RACEvent.h

value

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

@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

Returns a singleton RACEvent representing the completed event.

+ (instancetype)completedEvent

Discussion

Returns a singleton RACEvent representing the completed event.

Declared In

RACEvent.h

eventWithError:

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

+ (instancetype)eventWithError:(NSError *)error

Discussion

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

Declared In

RACEvent.h

eventWithValue:

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

+ (instancetype)eventWithValue:(id)value

Discussion

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

Declared In

RACEvent.h