Files
midi_ios/Pods/ReactiveObjC/ReactiveObjC/NSUserDefaults+RACSupport.h
2025-08-14 10:07:49 +08:00

32 lines
864 B
Objective-C

//
// NSUserDefaults+RACSupport.h
// ReactiveObjC
//
// Created by Matt Diephouse on 12/19/13.
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@class RACChannelTerminal;
NS_ASSUME_NONNULL_BEGIN
@interface NSUserDefaults (RACSupport)
/// Creates and returns a terminal for binding the user defaults key.
///
/// **Note:** The value in the user defaults is *asynchronously* updated with
/// values sent to the channel.
///
/// key - The user defaults key to create the channel terminal for.
///
/// Returns a channel terminal that sends the value of the user defaults key
/// upon subscription, sends an updated value whenever the default changes, and
/// updates the default asynchronously with values it receives.
- (RACChannelTerminal *)rac_channelTerminalForKey:(NSString *)key;
@end
NS_ASSUME_NONNULL_END