forked from xamarin/GoogleApisForiOSComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApiDefinition.cs
68 lines (62 loc) · 2.13 KB
/
ApiDefinition.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using Foundation;
using ObjCRuntime;
using System;
namespace Google.AppIndexing
{
// @interface GSDDeepLink : NSObject
//
// /**
// * @method handleDeepLink:
// * @abstract Handles a deep link and displays a back bar if the URL is valid.
// * @param deeplinkURL The deeplink URL.
// * @return The sanitized URL (with GSD specific query params removed).
// */
// + (NSURL *)handleDeepLink:(NSURL *)deeplinkURL;
//
// /**
// * @method isDeepLinkFromGoogleSearch:
// * @abstract Whether the deeplink URL has come from Google Search.
// * @param deeplinkURL The deeplink URL. This should NOT be the sanitized URL returned from
// * handleDeepLink:
// * @return A BOOL indicating whether the deeplink URL is coming from Google Search.
// */
// + (BOOL)isDeepLinkFromGoogleSearch:(NSURL *)deepLinkURL;
//
// /**
// * @method isDeepLinkFromGoogleAppCrawler:
// * @abstract Whether the deeplink URL has come from Google App Crawler.
// * @param deeplinkURL The deeplink URL. This should NOT be the sanitized URL returned from
// * handleDeepLink:
// * @return A BOOL indicating whether the deeplink URL is coming from Google App Crawler.
// */
// + (BOOL)isDeepLinkFromGoogleAppCrawler:(NSURL *)deepLinkURL;
//
[BaseType (typeof(NSObject), Name = "GSDDeepLink")]
interface DeepLink
{
// + (NSURL *)handleDeepLink:(NSURL *)deeplinkURL;
[Static]
[Export ("handleDeepLink:")]
NSUrl HandleDeepLink (NSUrl deepLinkUrl);
// + (BOOL)isDeepLinkFromGoogleSearch:(NSURL *)deepLinkURL;
[Static]
[Export ("isDeepLinkFromGoogleSearch:")]
bool IsDeepLinkFromGoogleSearch (NSUrl deepLinkUrl);
// + (BOOL)isDeepLinkFromGoogleAppCrawler:(NSURL *)deepLinkURL;
[Static]
[Export ("isDeepLinkFromGoogleAppCrawler:")]
bool IsDeepLinkFromGoogleAppCrawler (NSUrl deepLinkUrl);
}
[DisableDefaultCtor]
[BaseType (typeof(NSObject), Name = "GSDAppIndexing")]
interface AppIndexing
{
// + (instancetype)sharedInstance;
[Static]
[Export ("sharedInstance")]
AppIndexing SharedInstance { get; }
// - (void)registerApp:(NSUInteger)iTunesID;
[Export ("registerApp:")]
void RegisterApp (nuint iTunesId);
}
}