{"action":"created","comment":{"url":"https://api.github.com/repos/flutter/website/pulls/comments/68507615","id":68507615,"diff_hunk":"@@ -0,0 +1,215 @@\n+---\n+layout: page\n+title: Accessing Platform and Third-Party Services in Flutter\n+sidebar: home_sidebar\n+permalink: /platform-services/\n+---\n+\n+This guide describes how to connect your Flutter app to platform-specific or\n+third-party services that are available on iOS and Android devices.\n+\n+* TOC\n+{:toc}\n+\n+## Introduction\n+\n+Mobile devices offer many capabilities to your app which can be accessed through\n+platform-specific native APIs, or APIs from third-party vendors. Flutter offers several ways\n+for you to integrate the functionality of these of these platform services to extend your Flutter\n+app.\n+\n+### First-party services for Flutter {#first-party-services-for-flutter}\n+\n+For frequently used services, the Flutter SDK provides APIs to access first-party services that\n+are supported across platforms. You can call these APIs directly in your Dart code. These\n+first-party services are provided through the `SKY_SERVICES` library. The following list\n+summarizes these first-party services.\n+\n++ [`activity_mojom`](http://docs.flutter.io/flutter/activity_mojom/activity_mojom-library.html)\n++ [`app_messages_mojom`](http://docs.flutter.io/flutter/app_messages_mojom/app_messages_mojom-library.html)\n++ [`editing_mojom`](http://docs.flutter.io/flutter/editing_mojom/editing_mojom-library.html)\n++ [`haptic_feedback_mojom`](http://docs.flutter.io/flutter/haptic_feedback_mojom/haptic_feedback_mojom-library.html)\n++ [`input_event_mojom`](http://docs.flutter.io/flutter/input_event_mojom/input_event_mojom-library.html)\n++ [`media_mojom`](http://docs.flutter.io/flutter/media_mojom/media_mojom-library.html)\n++ [`path_provider_mojom`](http://docs.flutter.io/flutter/path_provider_mojom/path_provider_mojom-library.html)\n++ [`pointer_mojom`](http://docs.flutter.io/flutter/pointer_mojom/pointer_mojom-library.html)\n++ [`raw_keyboard_mojom`](http://docs.flutter.io/flutter/raw_keyboard_mojom/raw_keyboard_mojom-library.html)\n++ [`semantics_mojom`](http://docs.flutter.io/flutter/semantics_mojom/semantics_mojom-library.html)\n++ [`system_chrome_mojom`](http://docs.flutter.io/flutter/system_chrome_mojom/system_chrome_mojom-library.html)\n++ [`system_sound_mojom`](http://docs.flutter.io/flutter/system_sound_mojom/system_sound_mojom-library.html)\n+\n+### Platform and Third-party Services for Flutter {#platform-and-third-party-services-for-flutter}\n+\n+To access APIs that are native to the iOS or Android mobile platform, Flutter provides the\n+`FlutterView` interface. The `FlutterView` interface allows you to embed a bi-directional\n+asynchronous messaging component in your platform code to send and receive native service calls\n+in a transparent way. This flexible approach lets you create cross-platform mobile apps that can\n+connect to platform-specific and third-party services on iOS and Android devices, while sharing a\n+common user interface (UI) codebase in Dart.","path":"platform-services.md","position":48,"original_position":48,"commit_id":"b8d675110e86847911d5ed9fccb86acbae985ac0","original_commit_id":"b8d675110e86847911d5ed9fccb86acbae985ac0","user":{"login":"abarth","id":112007,"avatar_url":"https://avatars.githubusercontent.com/u/112007?v=3","gravatar_id":"","url":"https://api.github.com/users/abarth","html_url":"https://github.com/abarth","followers_url":"https://api.github.com/users/abarth/followers","following_url":"https://api.github.com/users/abarth/following{/other_user}","gists_url":"https://api.github.com/users/abarth/gists{/gist_id}","starred_url":"https://api.github.com/users/abarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abarth/subscriptions","organizations_url":"https://api.github.com/users/abarth/orgs","repos_url":"https://api.github.com/users/abarth/repos","events_url":"https://api.github.com/users/abarth/events{/privacy}","received_events_url":"https://api.github.com/users/abarth/received_events","type":"User","site_admin":false},"body":"I'd strike the words \"in Dart\".","created_at":"2016-06-26T19:04:47Z","updated_at":"2016-06-26T19:04:47Z","html_url":"https://github.com/flutter/website/pull/251#discussion_r68507615","pull_request_url":"https://api.github.com/repos/flutter/website/pulls/251","_links":{"self":{"href":"https://api.github.com/repos/flutter/website/pulls/comments/68507615"},"html":{"href":"https://github.com/flutter/website/pull/251#discussion_r68507615"},"pull_request":{"href":"https://api.github.com/repos/flutter/website/pulls/251"}}},"pull_request":{"url":"https://api.github.com/repos/flutter/website/pulls/251","id":74293204,"html_url":"https://github.com/flutter/website/pull/251","diff_url":"https://github.com/flutter/website/pull/251.diff","patch_url":"https://github.com/flutter/website/pull/251.patch","issue_url":"https://api.github.com/repos/flutter/website/issues/251","number":251,"state":"open","locked":false,"title":"docs: Add howto guide on adding platform and third-party services in Flutter","user":{"login":"qchong","id":5986149,"avatar_url":"https://avatars.githubusercontent.com/u/5986149?v=3","gravatar_id":"","url":"https://api.github.com/users/qchong","html_url":"https://github.com/qchong","followers_url":"https://api.github.com/users/qchong/followers","following_url":"https://api.github.com/users/qchong/following{/other_user}","gists_url":"https://api.github.com/users/qchong/gists{/gist_id}","starred_url":"https://api.github.com/users/qchong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qchong/subscriptions","organizations_url":"https://api.github.com/users/qchong/orgs","repos_url":"https://api.github.com/users/qchong/repos","events_url":"https://api.github.com/users/qchong/events{/privacy}","received_events_url":"https://api.github.com/users/qchong/received_events","type":"User","site_admin":false},"body":"Fixes https://github.com/flutter/flutter/issues/4503.\r\nStage preview: https://flutter-io-staging-69a8a.firebaseapp.com/platform-services/\r\n\r\n@abarth ptal.","created_at":"2016-06-17T19:28:19Z","updated_at":"2016-06-26T19:04:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"acbc85d685a4bf2de3c828e875daaddcb2c7c40a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/flutter/website/pulls/251/commits","review_comments_url":"https://api.github.com/repos/flutter/website/pulls/251/comments","review_comment_url":"https://api.github.com/repos/flutter/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flutter/website/issues/251/comments","statuses_url":"https://api.github.com/repos/flutter/website/statuses/b8d675110e86847911d5ed9fccb86acbae985ac0","head":{"label":"qchong:platform-services","ref":"platform-services","sha":"b8d675110e86847911d5ed9fccb86acbae985ac0","user":{"login":"qchong","id":5986149,"avatar_url":"https://avatars.githubusercontent.com/u/5986149?v=3","gravatar_id":"","url":"https://api.github.com/users/qchong","html_url":"https://github.com/qchong","followers_url":"https://api.github.com/users/qchong/followers","following_url":"https://api.github.com/users/qchong/following{/other_user}","gists_url":"https://api.github.com/users/qchong/gists{/gist_id}","starred_url":"https://api.github.com/users/qchong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qchong/subscriptions","organizations_url":"https://api.github.com/users/qchong/orgs","repos_url":"https://api.github.com/users/qchong/repos","events_url":"https://api.github.com/users/qchong/events{/privacy}","received_events_url":"https://api.github.com/users/qchong/received_events","type":"User","site_admin":false},"repo":{"id":56621504,"name":"website","full_name":"qchong/website","owner":{"login":"qchong","id":5986149,"avatar_url":"https://avatars.githubusercontent.com/u/5986149?v=3","gravatar_id":"","url":"https://api.github.com/users/qchong","html_url":"https://github.com/qchong","followers_url":"https://api.github.com/users/qchong/followers","following_url":"https://api.github.com/users/qchong/following{/other_user}","gists_url":"https://api.github.com/users/qchong/gists{/gist_id}","starred_url":"https://api.github.com/users/qchong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qchong/subscriptions","organizations_url":"https://api.github.com/users/qchong/orgs","repos_url":"https://api.github.com/users/qchong/repos","events_url":"https://api.github.com/users/qchong/events{/privacy}","received_events_url":"https://api.github.com/users/qchong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/qchong/website","description":"Flutter web site","fork":true,"url":"https://api.github.com/repos/qchong/website","forks_url":"https://api.github.com/repos/qchong/website/forks","keys_url":"https://api.github.com/repos/qchong/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qchong/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qchong/website/teams","hooks_url":"https://api.github.com/repos/qchong/website/hooks","issue_events_url":"https://api.github.com/repos/qchong/website/issues/events{/number}","events_url":"https://api.github.com/repos/qchong/website/events","assignees_url":"https://api.github.com/repos/qchong/website/assignees{/user}","branches_url":"https://api.github.com/repos/qchong/website/branches{/branch}","tags_url":"https://api.github.com/repos/qchong/website/tags","blobs_url":"https://api.github.com/repos/qchong/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qchong/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qchong/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/qchong/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qchong/website/statuses/{sha}","languages_url":"https://api.github.com/repos/qchong/website/languages","stargazers_url":"https://api.github.com/repos/qchong/website/stargazers","contributors_url":"https://api.github.com/repos/qchong/website/contributors","subscribers_url":"https://api.github.com/repos/qchong/website/subscribers","subscription_url":"https://api.github.com/repos/qchong/website/subscription","commits_url":"https://api.github.com/repos/qchong/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/qchong/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/qchong/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/qchong/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/qchong/website/contents/{+path}","compare_url":"https://api.github.com/repos/qchong/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qchong/website/merges","archive_url":"https://api.github.com/repos/qchong/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qchong/website/downloads","issues_url":"https://api.github.com/repos/qchong/website/issues{/number}","pulls_url":"https://api.github.com/repos/qchong/website/pulls{/number}","milestones_url":"https://api.github.com/repos/qchong/website/milestones{/number}","notifications_url":"https://api.github.com/repos/qchong/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qchong/website/labels{/name}","releases_url":"https://api.github.com/repos/qchong/website/releases{/id}","deployments_url":"https://api.github.com/repos/qchong/website/deployments","created_at":"2016-04-19T18:29:38Z","updated_at":"2016-05-19T23:09:29Z","pushed_at":"2016-06-17T19:26:03Z","git_url":"git://github.com/qchong/website.git","ssh_url":"git@github.com:qchong/website.git","clone_url":"https://github.com/qchong/website.git","svn_url":"https://github.com/qchong/website","homepage":"https://flutter.io","size":2209,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"flutter:master","ref":"master","sha":"0926e92a94a6f4bc869ed1181ad96e0baa638710","user":{"login":"flutter","id":14101776,"avatar_url":"https://avatars.githubusercontent.com/u/14101776?v=3","gravatar_id":"","url":"https://api.github.com/users/flutter","html_url":"https://github.com/flutter","followers_url":"https://api.github.com/users/flutter/followers","following_url":"https://api.github.com/users/flutter/following{/other_user}","gists_url":"https://api.github.com/users/flutter/gists{/gist_id}","starred_url":"https://api.github.com/users/flutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flutter/subscriptions","organizations_url":"https://api.github.com/users/flutter/orgs","repos_url":"https://api.github.com/users/flutter/repos","events_url":"https://api.github.com/users/flutter/events{/privacy}","received_events_url":"https://api.github.com/users/flutter/received_events","type":"Organization","site_admin":false},"repo":{"id":41847366,"name":"website","full_name":"flutter/website","owner":{"login":"flutter","id":14101776,"avatar_url":"https://avatars.githubusercontent.com/u/14101776?v=3","gravatar_id":"","url":"https://api.github.com/users/flutter","html_url":"https://github.com/flutter","followers_url":"https://api.github.com/users/flutter/followers","following_url":"https://api.github.com/users/flutter/following{/other_user}","gists_url":"https://api.github.com/users/flutter/gists{/gist_id}","starred_url":"https://api.github.com/users/flutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flutter/subscriptions","organizations_url":"https://api.github.com/users/flutter/orgs","repos_url":"https://api.github.com/users/flutter/repos","events_url":"https://api.github.com/users/flutter/events{/privacy}","received_events_url":"https://api.github.com/users/flutter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flutter/website","description":"Flutter web site","fork":false,"url":"https://api.github.com/repos/flutter/website","forks_url":"https://api.github.com/repos/flutter/website/forks","keys_url":"https://api.github.com/repos/flutter/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flutter/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flutter/website/teams","hooks_url":"https://api.github.com/repos/flutter/website/hooks","issue_events_url":"https://api.github.com/repos/flutter/website/issues/events{/number}","events_url":"https://api.github.com/repos/flutter/website/events","assignees_url":"https://api.github.com/repos/flutter/website/assignees{/user}","branches_url":"https://api.github.com/repos/flutter/website/branches{/branch}","tags_url":"https://api.github.com/repos/flutter/website/tags","blobs_url":"https://api.github.com/repos/flutter/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flutter/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flutter/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/flutter/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flutter/website/statuses/{sha}","languages_url":"https://api.github.com/repos/flutter/website/languages","stargazers_url":"https://api.github.com/repos/flutter/website/stargazers","contributors_url":"https://api.github.com/repos/flutter/website/contributors","subscribers_url":"https://api.github.com/repos/flutter/website/subscribers","subscription_url":"https://api.github.com/repos/flutter/website/subscription","commits_url":"https://api.github.com/repos/flutter/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/flutter/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/flutter/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/flutter/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/flutter/website/contents/{+path}","compare_url":"https://api.github.com/repos/flutter/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flutter/website/merges","archive_url":"https://api.github.com/repos/flutter/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flutter/website/downloads","issues_url":"https://api.github.com/repos/flutter/website/issues{/number}","pulls_url":"https://api.github.com/repos/flutter/website/pulls{/number}","milestones_url":"https://api.github.com/repos/flutter/website/milestones{/number}","notifications_url":"https://api.github.com/repos/flutter/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flutter/website/labels{/name}","releases_url":"https://api.github.com/repos/flutter/website/releases{/id}","deployments_url":"https://api.github.com/repos/flutter/website/deployments","created_at":"2015-09-03T07:30:01Z","updated_at":"2016-05-02T19:06:23Z","pushed_at":"2016-06-21T17:17:41Z","git_url":"git://github.com/flutter/website.git","ssh_url":"git@github.com:flutter/website.git","clone_url":"https://github.com/flutter/website.git","svn_url":"https://github.com/flutter/website","homepage":"https://flutter.io","size":2282,"stargazers_count":22,"watchers_count":22,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":22,"mirror_url":null,"open_issues_count":1,"forks":22,"open_issues":1,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flutter/website/pulls/251"},"html":{"href":"https://github.com/flutter/website/pull/251"},"issue":{"href":"https://api.github.com/repos/flutter/website/issues/251"},"comments":{"href":"https://api.github.com/repos/flutter/website/issues/251/comments"},"review_comments":{"href":"https://api.github.com/repos/flutter/website/pulls/251/comments"},"review_comment":{"href":"https://api.github.com/repos/flutter/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flutter/website/pulls/251/commits"},"statuses":{"href":"https://api.github.com/repos/flutter/website/statuses/b8d675110e86847911d5ed9fccb86acbae985ac0"}}}}
{"actor":{"display_login":"abarth"}}