-
Notifications
You must be signed in to change notification settings - Fork 6
/
AppDelegate.cs
29 lines (25 loc) · 865 Bytes
/
AppDelegate.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
using Foundation;
using UIKit;
namespace Xamarin.iOS.LinkedIn.Sample
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to application events from iOS.
[Register("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
// class-level declarations
public override UIWindow Window
{
get;
set;
}
public override bool OpenUrl(UIApplication application, NSUrl url, string sourceApplication, NSObject annotation)
{
if (CallbackHandler.ShouldHandleUrl(url))
{
CallbackHandler.OpenUrl(application, url, sourceApplication, annotation);
}
return true;
}
}
}