lpw
2024-04-15 97fc0a41111c5a929ee8be9d6511775697ffa760
commit | author | age
2e29a3 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 #if !TARGET_OS_TV
10
11 #import <UIKit/UIKit.h>
12
13 @protocol FBSDKWebDialogViewDelegate;
e0ec42 14 @protocol FBSDKWebViewProviding;
2e29a3 15
L 16 NS_ASSUME_NONNULL_BEGIN
17
18 NS_SWIFT_NAME(FBWebDialogView)
19 @interface FBSDKWebDialogView : UIView
20
21 @property (nonatomic, weak) id<FBSDKWebDialogViewDelegate> delegate;
22
23 - (void)loadURL:(NSURL *)URL;
24 - (void)stopLoading;
25
e0ec42 26 /**
L 27  Internal method exposed to facilitate transition to Swift.
28  API Subject to change or removal without warning. Do not use.
29
30  @warning INTERNAL - DO NOT USE
31  */
32 // UNCRUSTIFY_FORMAT_OFF
33 + (void)configureWithWebViewProvider:(id<FBSDKWebViewProviding>)webViewProvider
34                            urlOpener:(id<FBSDKInternalURLOpener>)urlOpener
35                         errorFactory:(id<FBSDKErrorCreating>)errorFactory
36 NS_SWIFT_NAME(configure(webViewProvider:urlOpener:errorFactory:));
37 // UNCRUSTIFY_FORMAT_ON
38
2e29a3 39 @end
L 40
41 NS_SWIFT_NAME(WebDialogViewDelegate)
42 @protocol FBSDKWebDialogViewDelegate <NSObject>
43
44 - (void)webDialogView:(FBSDKWebDialogView *)webDialogView didCompleteWithResults:(NSDictionary<NSString *, id> *)results;
45 - (void)webDialogView:(FBSDKWebDialogView *)webDialogView didFailWithError:(NSError *)error;
46 - (void)webDialogViewDidCancel:(FBSDKWebDialogView *)webDialogView;
47 - (void)webDialogViewDidFinishLoad:(FBSDKWebDialogView *)webDialogView;
48
49 @end
50
51 NS_ASSUME_NONNULL_END
52
53 #endif