Skip to content

Commit 2775940

Browse files
committed
SDK-1737 clarify comments
1 parent 4edf0c8 commit 2775940

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Timber/Platforms/Android/MainActivity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using Android.Content.PM;
33
using Android.OS;
44
using BranchSDK;
5-
using Newtonsoft.Json;
65
using Android.Content;
76

87
namespace Timber;
@@ -23,14 +22,15 @@ namespace Timber;
2322
* Add a "Name" so this Activity can be located by name.
2423
* Set the LaunchMode, singleTop or singleTask is recommended.
2524
*
25+
* Implement IBranchSessionInterface to get Branch Payloads
26+
*
2627
*/
2728
[Activity(Name = "io.branch.timber.MainActivity", Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
2829
public class MainActivity : MauiAppCompatActivity, IBranchSessionInterface
2930
{
3031
protected override void OnCreate(Bundle savedInstanceState)
3132
{
3233
base.OnCreate(savedInstanceState);
33-
3434
BranchAndroid.Init(this, "key_live_nf8w3l1WBpzWdlC00KsLNdmbuEccK6Yr", this);
3535
}
3636

Timber/Platforms/iOS/AppDelegate.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace Timber;
66

7+
/*
8+
* Implement IBranchSessionInterface to get Branch payloads.
9+
*/
710
[Register("AppDelegate")]
811
public class AppDelegate : MauiUIApplicationDelegate, IBranchSessionInterface
912
{
@@ -17,15 +20,15 @@ public override bool FinishedLaunching(UIApplication application, NSDictionary l
1720
return base.FinishedLaunching(application, launchOptions);
1821
}
1922

23+
// Handle URI opens
2024
public override bool OpenUrl(UIApplication application, NSUrl url, NSDictionary options)
2125
{
22-
//return base.OpenUrl(application, url, options);
2326
return BranchIOS.getInstance().OpenUrl(url);
2427
}
2528

29+
// Handle Universal Links
2630
public override bool ContinueUserActivity(UIApplication application, NSUserActivity userActivity, UIApplicationRestorationHandler completionHandler)
2731
{
28-
//return base.ContinueUserActivity(application, userActivity, completionHandler);
2932
return BranchIOS.getInstance().ContinueUserActivity(userActivity);
3033
}
3134

0 commit comments

Comments
 (0)