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 #if !TARGET_OS_TV
10
11 #import <UIKit/UIKit.h>
12
13 @protocol FBSDKWebDialogViewDelegate;
14 @protocol FBSDKWebViewProviding;
15
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
26 /**
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
39 @end
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