Inherits from RACSubject : RACSignal : RACStream : NSObject
Declared in RACBehaviorSubject.h

Overview

A behavior subject sends the last value it received when it is subscribed to.

Tasks

  • + behaviorSubjectWithDefaultValue:

    Creates a new behavior subject with a default value. If it hasn’t received any values when it gets subscribed to, it sends the default value.

Class Methods

behaviorSubjectWithDefaultValue:

Creates a new behavior subject with a default value. If it hasn’t received any values when it gets subscribed to, it sends the default value.

+ (instancetype)behaviorSubjectWithDefaultValue:(id)value

Discussion

Creates a new behavior subject with a default value. If it hasn’t received any values when it gets subscribed to, it sends the default value.

Declared In

RACBehaviorSubject.h