feature: open with URL

This commit is contained in:
2020-05-09 17:39:01 +08:00
parent 33fe1c8cc1
commit dffe0bb3a4
11 changed files with 251 additions and 34 deletions

View File

@@ -23,5 +23,11 @@ namespace Pixiview.iOS
return base.FinishedLaunching(app, options);
}
public override bool OpenUrl(UIApplication app, NSUrl url, NSDictionary options)
{
App.DebugPrint($"url: {url}.");
return App.OpenUrl(url.AbsoluteString);
}
}
}

View File

@@ -50,5 +50,20 @@
<true/>
<key>UIFileSharingEnabled</key>
<true/>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleURLSchemes</key>
<array>
<string>pixiview</string>
</array>
<key>CFBundleURLName</key>
<string>org.tsanie.pixiview</string>
<key>CFBundleURLIconFile</key>
<string>Assets.xcassets/AppIcon.appiconset/Icon58</string>
</dict>
</array>
</dict>
</plist>