FBSDKWebDialogView.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  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. #if !TARGET_OS_TV
  9. #import <UIKit/UIKit.h>
  10. @protocol FBSDKWebDialogViewDelegate;
  11. @protocol FBSDKWebViewProviding;
  12. NS_ASSUME_NONNULL_BEGIN
  13. NS_SWIFT_NAME(FBWebDialogView)
  14. @interface FBSDKWebDialogView : UIView
  15. @property (nonatomic, weak) id<FBSDKWebDialogViewDelegate> delegate;
  16. - (void)loadURL:(NSURL *)URL;
  17. - (void)stopLoading;
  18. /**
  19. Internal method exposed to facilitate transition to Swift.
  20. API Subject to change or removal without warning. Do not use.
  21. @warning INTERNAL - DO NOT USE
  22. */
  23. // UNCRUSTIFY_FORMAT_OFF
  24. + (void)configureWithWebViewProvider:(id<FBSDKWebViewProviding>)webViewProvider
  25. urlOpener:(id<FBSDKInternalURLOpener>)urlOpener
  26. errorFactory:(id<FBSDKErrorCreating>)errorFactory
  27. NS_SWIFT_NAME(configure(webViewProvider:urlOpener:errorFactory:));
  28. // UNCRUSTIFY_FORMAT_ON
  29. @end
  30. NS_SWIFT_NAME(WebDialogViewDelegate)
  31. @protocol FBSDKWebDialogViewDelegate <NSObject>
  32. - (void)webDialogView:(FBSDKWebDialogView *)webDialogView didCompleteWithResults:(NSDictionary<NSString *, id> *)results;
  33. - (void)webDialogView:(FBSDKWebDialogView *)webDialogView didFailWithError:(NSError *)error;
  34. - (void)webDialogViewDidCancel:(FBSDKWebDialogView *)webDialogView;
  35. - (void)webDialogViewDidFinishLoad:(FBSDKWebDialogView *)webDialogView;
  36. @end
  37. NS_ASSUME_NONNULL_END
  38. #endif