Inherits from NSObject
Conforms to NSCopying
Declared in RACEvent.h
RACEvent.m

Overview

Represents an event sent by a RACSignal.

This corresponds to the Notification class in Rx.

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

Declared In

RACEvent.h

eventType

The type of event represented by the receiver.

@property (nonatomic, assign, readonly) RACEventType eventType

Declared In

RACEvent.h

finished

Returns whether the receiver is of type RACEventTypeCompleted or RACEventTypeError.

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

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

Declared In

RACEvent.h

Class Methods

completedEvent

Returns a singleton RACEvent representing the completed event.

+ (instancetype)completedEvent

Declared In

RACEvent.h

eventWithError:

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

+ (instancetype)eventWithError:(NSError *)error

Declared In

RACEvent.h

eventWithValue:

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

+ (instancetype)eventWithValue:(id)value

Declared In

RACEvent.h