 ディープリンクを利用して他のアプリと連携するための API
 プラットフォーム固有の設定
 なし
Launcher.CanOpenAsync("lyft://");
Launcher.OpenAsync("lyft://ridetype?id=lyft_line");
await Launcher.OpenAsync(new OpenFileRequest
{
File = new ReadOnlyFile(file)
});
http://bit.ly/2QwTYce
[クラス名].[プラットフォーム名].cs
 URI を開くことができるかをチェックする
UIApplication.SharedApplication.
CanOpenUrl(NSUrl)
PackageManager.QueryIntentActi
vities
Windows.System.Launcher.
QueryUriSupportAsync(Uri,
QuerySupportType)
var supportsUri = await Launcher.CanOpenAsync(“tel://");
CanOpenUrl
暗黙的 Intent
Intent を実行できる Activity を検索する
QueryAppUriSupportAsync
 URI を指定してアプリを開く
UIApplication.SharedApplication.
OpenUrlAsync(NSUrl)
Context.StartActivity
Windows.System.Launcher.
LaunchUriAsync
await Launcher.OpenAsync(“tel:00000001234");
OpenUrlAsync
Activity の開始
暗黙的 Intent
LaunchUriAsync
 ファイルを他のアプリで開いて表示する
UIDocumentInteractionController Context.StartActivity
Windows.System.Launcher.
LaunchFileAsync
await Launcher.OpenAsync(new OpenFileRequest
{
File = new ReadOnlyFile(file)
});
UIDocumentInteractionController
Context.StartActivity
Intent にファイルのパス、
パーミッションのフラグを
設定する
LaunchFileAsync
API
• PackageManager の QueryAppUriSupportAsync
• Context の StartActivity
http://qiita.com/advent-calendar/2013/xamarin
http://qiita.com/advent-calendar/2014/xamarin
http://qiita.com/advent-calendar/2015/xamarin
http://qiita.com/advent-calendar/2016/xamarin
http://qiita.com/advent-calendar/2016/xamarin-student
http://qiita.com/advent-calendar/2016/xamarin2
http://qiita.com/advent-calendar/2016/xamarin-welcome
https://qiita.com/advent-calendar/2017/xamarin
https://qiita.com/advent-calendar/2017/xamarin-student
https://qiita.com/advent-calendar/2018/xamarin
https://docs.microsoft.com/ja-jp/xamarin/essentials/launcher
https://github.com/xamarin/Essentials/tree/master/Xamarin.Essentials/
Launcher
https://docs.microsoft.com/ja-jp/dotnet/api/uikit.uiapplication.sharedapplication
https://docs.microsoft.com/ja-jp/dotnet/api/uikit.uiapplication.canopenurl
https://docs.microsoft.com/ja-jp/dotnet/api/uikit.uiapplication.openurlasync
https://developer.apple.com/documentation/uikit/uidocumentinteractioncontroller?language=objc
https://developer.android.com/training/basics/intents
https://developer.android.com/guide/components/intents-
filters?hl=JA#Types
https://developer.android.com/reference/android/content/pm/Package
Manager#queryIntentActivities(android.content.Intent,%20int)
https://developer.android.com/reference/android/content/Context#start
Activity(android.content.Intent,%20android.os.Bundle)
https://docs.microsoft.com/en-
us/uwp/api/windows.system.launcher.queryurisupportasync
https://docs.microsoft.com/en-
us/uwp/api/windows.system.launcher.launchfileasync
# 機能名 説明
1 Accelerometer 加速度計 3 次元空間内のデバイスの加速度データを取得します。
2 App Information アプリ情報 アプリケーションに関する情報を見つけます。
3 Barometer バロメーター 負荷の変化のバロメーターを監視します。
4 Battery バッテリ – バッテリ レベル、ソース、および状態を簡単に検出し
ます。
5 Clipboard クリップボード クリップボード上のテキストをすばやく簡単に設定し
たり読み取ったりします。
6 Color Converters 色の変換機能 System.Drawing.Color のヘルパー メソッド。
7 Compass コンパス 変化のコンパスを監視します。
8 Connectivity 接続 接続状態を確認し、変更を検出します。
9 Detect Shake シェイクの検出 デバイスを振る動きを検出します。
10 Device Display Information デバイス ディスプレイ情報 デバイスの画面のメトリックと向きを取得します。
# 機能名 説明
11 Device Information デバイス情報 デバイスの詳細を簡単に確認します。
12 Email 電子メール 電子メール メッセージを簡単に送信します。
13 File System Helpers ファイル システム ヘルパー アプリ データにファイルを簡単に保存します。
14 Flashlight 懐中電灯 懐中電灯のオン/オフを簡単に切り替える方法です。
15 Geocoding ジオコーディング ジオコードとリバース ジオコードのアドレスおよび座
標。
16 Geolocation 位置情報 デバイスの GPS 位置情報を取得します。
17 Gyroscope ジャイロスコープ デバイスの 3 つの主軸の周りの回転を追跡します。
18 Launcher ランチャー アプリケーションがシステムで URI を開くことができ
るようにします。
19 Magnetometer 磁力計 地球の磁場を基準としたデバイスの向きを検出します。
20 MainThread メイン スレッド アプリケーションのメイン スレッドでコードを実行し
ます。
# 機能名 説明
21 Maps マップ 特定の場所にマップ アプリケーションを開きます。
22 Open Browser ブラウザーを開く ブラウザーで特定の Web サイトをすばやく簡単に開き
ます。
23 Orientation Sensor 向きセンサー 3 次元空間内のデバイスの向きを取得します。
24 Phone Dialer ダイヤラー ダイヤラーを開きます。
25 Platform Extensions プラットフォーム拡張 Rect、Size、Point を変換するためのヘルパー メソッド。
26 Preferences ユーザー設定 永続的なユーザー設定をすばやく簡単に追加します。
27 Secure Storage セキュリティで保護されたストレージ データを安全に格納します。
28 Share 共有 他のアプリにテキストや Web サイトの URI を送信し
ます。
29 SMS SMS 送信用の SMS メッセージを作成します。
30 Text-to-Speech 音声合成 デバイス上のテキストを音声化します。
# 機能名 説明
31 Unit Converters 単位変換機能 単位を変換するためのヘルパー メソッド。
32 Version Tracking バージョンの追跡 アプリケーションのバージョンとビルド番号を追跡し
ます。
33 Vibrate バイブレーション デバイスをバイブレーションさせます。

2019-11-22 JXUG Introduction to Xamarin.Essentials #4 Launcher