2626@class RCNConfigSettings;
2727@class FIRRemoteConfigValue;
2828@class RCNConfigFetch;
29+ @class RCNConfigRealtime;
30+ @class FIRConfigUpdateListenerRegistration;
2931@protocol FIRAnalyticsInterop;
3032
3133@protocol FIRRolloutsStateSubscriber;
@@ -42,24 +44,6 @@ extern NSString *const _Nonnull FIRNamespaceGoogleMobilePlatform NS_SWIFT_NAME(
4244extern NSString *const _Nonnull FIRRemoteConfigThrottledEndTimeInSecondsKey NS_SWIFT_NAME (
4345 RemoteConfigThrottledEndTimeInSecondsKey);
4446
45- /* *
46- * Listener registration returned by `addOnConfigUpdateListener`. Calling its method `remove` stops
47- * the associated listener from receiving config updates and unregisters itself.
48- *
49- * If remove is called and no other listener registrations remain, the connection to the real-time
50- * RC backend is closed. Subsequently calling `addOnConfigUpdateListener` will re-open the
51- * connection.
52- */
53- NS_SWIFT_SENDABLE
54- NS_SWIFT_NAME (ConfigUpdateListenerRegistration)
55- @interface FIRConfigUpdateListenerRegistration : NSObject
56- /* *
57- * Removes the listener associated with this `ConfigUpdateListenerRegistration`. After the
58- * initial call, subsequent calls have no effect.
59- */
60- - (void )remove;
61- @end
62-
6347// / Indicates whether updated data was successfully fetched.
6448typedef NS_ENUM (NSInteger , FIRRemoteConfigFetchStatus) {
6549 // / Config has never been fetched.
@@ -340,6 +324,7 @@ typedef void (^FIRRemoteConfigUpdateCompletion)(FIRRemoteConfigUpdate *_Nullable
340324
341325// TODO: Below here is temporary public for Swift port
342326
327+ @property(nonatomic, readwrite, strong, nonnull) RCNConfigRealtime *configRealtime;
343328@property(nonatomic, readonly, strong) RCNConfigSettings *settings;
344329
345330// / Initialize a FIRRemoteConfig instance with all the required parameters directly. This exists so
@@ -358,7 +343,8 @@ typedef void (^FIRRemoteConfigUpdateCompletion)(FIRRemoteConfigUpdate *_Nullable
358343 configContent:(RCNConfigContent *)configContent
359344 userDefaults:(nullable NSUserDefaults *)userDefaults
360345 analytics:(nullable id <FIRAnalyticsInterop>)analytics
361- configFetch:(nullable RCNConfigFetch *)configFetch;
346+ configFetch:(nullable RCNConfigFetch *)configFetch
347+ configRealtime:(nullable RCNConfigRealtime *)configRealtime;
362348
363349// / Register `FIRRolloutsStateSubscriber` to `FIRRemoteConfig` instance
364350- (void )addRemoteConfigInteropSubscriber:(id <FIRRolloutsStateSubscriber> _Nonnull)subscriber;
0 commit comments