lpw
2023-06-03 e0ec4235cc7b8d05ec1aaa414ec2d2cac798d74e
commit | author | age
e0ec42 1 /*
L 2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  * All rights reserved.
4  *
5  * This source code is licensed under the license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8
9 #import <Foundation/Foundation.h>
10
11 NS_ASSUME_NONNULL_BEGIN
12
13 /// An internal protocol used to describe a type that can deliver a notification
14 NS_SWIFT_NAME(NotificationDelivering)
15 @protocol FBSDKNotificationDelivering
16
17 - (void)fb_addObserver:(id)observer
18               selector:(SEL)selector
19                   name:(nullable NSNotificationName)name
20                 object:(nullable id)object;
21
22 - (id <NSObject>)fb_addObserverForName:(nullable NSNotificationName)name
23                                 object:(nullable id)obj
24                                  queue:(nullable NSOperationQueue *)queue
25                             usingBlock:(void (^)(NSNotification *note))block;
26
27 - (void)fb_removeObserver:(id)observer;
28
29 @end
30
31 NS_ASSUME_NONNULL_END