commit | author | age
|
bad748
|
1 |
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
W |
2 |
// |
|
3 |
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, |
|
4 |
// copy, modify, and distribute this software in source code or binary form for use |
|
5 |
// in connection with the web services and APIs provided by Facebook. |
|
6 |
// |
|
7 |
// As with any software that integrates with the Facebook platform, your use of |
|
8 |
// this software is subject to the Facebook Developer Principles and Policies |
|
9 |
// [http://developers.facebook.com/policy/]. This copyright notice shall be |
|
10 |
// included in all copies or substantial portions of the software. |
|
11 |
// |
|
12 |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
13 |
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
|
14 |
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
|
15 |
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
|
16 |
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
|
17 |
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
18 |
|
|
19 |
#import <UIKit/UIKit.h> |
|
20 |
|
|
21 |
/*! |
|
22 |
@class FBSDKApplicationDelegate |
|
23 |
|
|
24 |
@abstract |
|
25 |
The FBSDKApplicationDelegate is designed to post process the results from Facebook Login |
|
26 |
or Facebook Dialogs (or any action that requires switching over to the native Facebook |
|
27 |
app or Safari). |
|
28 |
|
|
29 |
@discussion |
|
30 |
The methods in this class are designed to mirror those in UIApplicationDelegate, and you |
|
31 |
should call them in the respective methods in your AppDelegate implementation. |
|
32 |
*/ |
|
33 |
@interface FBSDKApplicationDelegate : NSObject |
|
34 |
|
|
35 |
/*! |
|
36 |
@abstract Gets the singleton instance. |
|
37 |
*/ |
|
38 |
+ (instancetype)sharedInstance; |
|
39 |
|
|
40 |
/*! |
|
41 |
@abstract |
|
42 |
Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method |
|
43 |
of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction |
|
44 |
with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. |
|
45 |
|
|
46 |
@param application The application as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. |
|
47 |
|
|
48 |
@param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. |
|
49 |
|
|
50 |
@param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. |
|
51 |
|
|
52 |
@param annotation The annotation as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. |
|
53 |
|
|
54 |
@return YES if the url was intended for the Facebook SDK, NO if not. |
|
55 |
*/ |
|
56 |
- (BOOL)application:(UIApplication *)application |
|
57 |
openURL:(NSURL *)url |
|
58 |
sourceApplication:(NSString *)sourceApplication |
|
59 |
annotation:(id)annotation; |
|
60 |
|
|
61 |
/*! |
|
62 |
@abstract |
|
63 |
Call this method from the [UIApplicationDelegate application:didFinishLaunchingWithOptions:] method |
|
64 |
of the AppDelegate for your app. It should be invoked for the proper use of the Facebook SDK. |
|
65 |
|
|
66 |
@param application The application as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. |
|
67 |
|
|
68 |
@param launchOptions The launchOptions as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. |
|
69 |
|
|
70 |
@return YES if the url was intended for the Facebook SDK, NO if not. |
|
71 |
*/ |
|
72 |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; |
|
73 |
|
|
74 |
@end |