Adding absolute link to guides

This commit is contained in:
Amy Burns 2018-03-29 12:23:32 -04:00
Родитель fb214cdf57
Коммит c0df6d69ed
57 изменённых файлов: 91 добавлений и 91 удалений

Просмотреть файл

@ -4,7 +4,7 @@ title: Capture User Input Text
brief: This recipe shows how to use EditText control to capture text entered by a user.
article:
- title: "EditText Tutorial"
url: /guides/android/user_interface/form_elements/edit_text
url: https://developer.xamarin.com/guides/android/user_interface/form_elements/edit_text
sdk:
- title: "EditText Class Reference"
url: http://developer.android.com/reference/android/widget/EditText.html

Просмотреть файл

@ -6,7 +6,7 @@ article:
- title: "Jon Pryor's StackOverflow post"
url: http://stackoverflow.com/questions/9745168/monodroid-javascript-call-back/9746911
- title: "WebView Tutorial"
url: /guides/android/user_interface/web_view
url: https://developer.xamarin.com/guides/android/user_interface/web_view
---
# Recipe

Просмотреть файл

@ -4,7 +4,7 @@ title: "Read Contacts"
subtitle: "How to read contacts in Android and display the results in a list"
link:
- title: "Introduction to Ice Cream Sandwich"
url: /guides/android/platform_features/introduction_to_ice_cream_sandwich
url: https://developer.xamarin.com/guides/android/platform_features/introduction_to_ice_cream_sandwich
sample:
- title: "ReadContacts"
url: https://github.com/xamarin/recipes/tree/master/android/data/contentproviders/read_contacts

Просмотреть файл

@ -7,7 +7,7 @@ samplecode:
url: /samples/monodroid/UpdateUsersProfile
article:
- title: "Using the Contacts ContentProvider"
url: /guides/android/platform_features/intro_to_content_providers/part_2_-_using_the_contacts_contentprovier/
url: https://developer.xamarin.com/guides/android/platform_features/intro_to_content_providers/part_2_-_using_the_contacts_contentprovier/
sdk:
- title: "ContactsContract.Profile"
url: http://developer.android.com/reference/android/provider/ContactsContract.Profile.html
@ -68,7 +68,7 @@ To update and query the user profile, follow these steps:
- Set the minimum Android version to API level 15.
(For more information about Android version settings, see
[Understanding Android API levels](/guides/android/application_fundamentals/understanding_android_api_levels/).)
[Understanding Android API levels](https://developer.xamarin.com/guides/android/application_fundamentals/understanding_android_api_levels/).)
In Visual Studio, open the project properties in
<span class="uiitem">Solution Explorer</span> and select the <span
class="uiitem">Application</span> page. In the drop-down menu under

Просмотреть файл

@ -4,11 +4,11 @@ title: "Browse Files"
brief: "This recipe shows how to create a simple file browser using Xamarin.Android. When the application is run, a ListView will display the contents of a directory on the device, starting with the root directory. When the user taps on an item in the list, one of two things will happen: If the item is a file, then a Toast will appear showing the name of the file that was selected. If the item is a directory, then the ListView will be repopulated to show the contents of the selected directory."
article:
- title: "ListViews and Adapters"
url: /guides/android/user_interface/working_with_listviews_and_adapters
url: https://developer.xamarin.com/guides/android/user_interface/working_with_listviews_and_adapters
- title: "Fragments"
url: /guides/android/platform_features/fragments
url: https://developer.xamarin.com/guides/android/platform_features/fragments
- title: "Fragments Walkthrough"
url: /guides/android/platform_features/fragments/fragments_walkthrough
url: https://developer.xamarin.com/guides/android/platform_features/fragments/fragments_walkthrough
sdk:
- title: "ArrayAdapter"
url: http://developer.android.com/reference/android/widget/ArrayAdapter.html

Просмотреть файл

@ -8,4 +8,4 @@ services
- [Activity](/Recipes/android/fundamentals/activity)
- [Intent](/Recipes/android/fundamentals/intent)
- [Service](/guides/android/application_fundamentals/services)
- [Service](https://developer.xamarin.com/guides/android/application_fundamentals/services)

Просмотреть файл

@ -4,9 +4,9 @@ title: "Passing Data Between Activities"
brief: "This recipe shows how to use intents to pass data between activities."
article:
- title: "Activity Lifecycle"
url: /guides/android/application_fundamentals/activity_lifecycle
url: https://developer.xamarin.com/guides/android/application_fundamentals/activity_lifecycle
- title: "Hello, Multiscreen Applications"
url: /guides/android/getting_started/hello,_multi-screen_applications
url: https://developer.xamarin.com/guides/android/getting_started/hello,_multi-screen_applications
sdk:
- title: "Activity Class Reference"
url: http://developer.android.com/reference/android/app/Activity.html
@ -48,5 +48,5 @@ string text = Intent.GetStringExtra ("MyData") ?? "Data not available";
Each screen in an application is represented by an activity. Sending
asynchronous messages called intents, which can include data payloads, as shown
in this recipe, starts activities. For more information, see the [Getting Started](/guides/android/getting_started) series and the [Activity Lifecycle](/guides/android/application_fundamentals/activity_lifecycle) in the Xamarin.Android documentation.
in this recipe, starts activities. For more information, see the [Getting Started](https://developer.xamarin.com/guides/android/getting_started) series and the [Activity Lifecycle](https://developer.xamarin.com/guides/android/application_fundamentals/activity_lifecycle) in the Xamarin.Android documentation.

Просмотреть файл

@ -4,7 +4,7 @@ title: "Start Activity For Result"
brief: "In the Hello, Multiscreen Applications guide, we learned how to navigate and pass data from one Activity to the next. This recipe augments the sample application built in the Hello, Multiscreen guide to pass data from from the second Activity back to the starting Activity using StartActivityForResult."
article:
- title: "Hello, Multiscreen Applications"
url: /guides/android/getting_started/hello,_multi-screen_applications
url: https://developer.xamarin.com/guides/android/getting_started/hello,_multi-screen_applications
sdk:
- title: "Android Activity"
url: http://developer.android.com/reference/android/app/Activity.html

Просмотреть файл

@ -4,9 +4,9 @@ title: "Start an Activity"
brief: "This recipe shows how to start an activity defined within an application."
article:
- title: "Activity Lifecycle"
url: /guides/android/application_fundamentals/activity_lifecycle
url: https://developer.xamarin.com/guides/android/application_fundamentals/activity_lifecycle
- title: "Hello, Multiscreen Applications"
url: /guides/android/getting_started/hello,_multi-screen_applications
url: https://developer.xamarin.com/guides/android/getting_started/hello,_multi-screen_applications
sdk:
- title: "Activity Class Reference"
url: http://developer.android.com/reference/android/app/Activity.html
@ -36,5 +36,5 @@ button.Click += delegate {
# Additional Information
Each screen in an application is represented by an activity. For more
information on activities see the [Getting Started](/guides/android/getting_started) series and the [Activity Lifecycle](/guides/android/application_fundamentals/activity_lifecycle) in the Xamarin.Android documentation.
information on activities see the [Getting Started](https://developer.xamarin.com/guides/android/getting_started) series and the [Activity Lifecycle](https://developer.xamarin.com/guides/android/application_fundamentals/activity_lifecycle) in the Xamarin.Android documentation.

Просмотреть файл

@ -4,9 +4,9 @@ title: "Launch the Map Application"
brief: "This recipe shows how to launch the maps application at a specified location."
article:
- title: "Hello, Multiscreen Applications"
url: /guides/android/getting_started/hello,_multi-screen_applications
url: https://developer.xamarin.com/guides/android/getting_started/hello,_multi-screen_applications
- title: "Maps and Location – Part 1"
url: /guides/android/platform_features/maps_and_location/part_1_-_maps_application
url: https://developer.xamarin.com/guides/android/platform_features/maps_and_location/part_1_-_maps_application
sdk:
- title: "Invoking Google Applications on Android Devices"
url: http://developer.android.com/guide/appendix/g-app-intents.html
@ -43,6 +43,6 @@ Each screen in an application is represented by an activity. Using
asynchronous messages called intents, when created from a Uri, causes the system
to load an activity that can handle the Uri scheme. In this recipe a Uri
beginning with geo: loads an activity from the maps application at the location
specified. See the [Geo Uri Scheme](/guides/android/platform_features/maps_and_location/part_1_-_maps_application#Geo_Uri_Scheme) section in the [Maps and Location](/guides/android/platform_features/maps_and_location)
specified. See the [Geo Uri Scheme](https://developer.xamarin.com/guides/android/platform_features/maps_and_location/part_1_-_maps_application#Geo_Uri_Scheme) section in the [Maps and Location](https://developer.xamarin.com/guides/android/platform_features/maps_and_location)
article for the various formats supported by this scheme.

Просмотреть файл

@ -4,7 +4,7 @@ title: "Launch the Phone Dialer"
brief: "This recipe shows how to launch the phone dialer application."
article:
- title: "Hello, Android Multiscreen"
url: /guides/android/getting_started/hello,android_multiscreen
url: https://developer.xamarin.com/guides/android/getting_started/hello,android_multiscreen
sdk:
- title: "Initiate a phone call"
url: http://developer.android.com/guide/components/intents-common.html#DialPhone

Просмотреть файл

@ -4,7 +4,7 @@ title: "Open a Webpage in the Browser Application"
brief: "This recipe shows how to launch a web page in the built-in browser application."
article:
- title: "Hello, Multiscreen Applications"
url: /guides/android/getting_started/hello,_multi-screen_applications
url: https://developer.xamarin.com/guides/android/getting_started/hello,_multi-screen_applications
sdk:
- title: "Invoking Google Applications on Android Devices"
url: http://developer.android.com/guide/appendix/g-app-intents.html

Просмотреть файл

@ -4,7 +4,7 @@ title: "Create an Android Project"
brief: "This recipe shows how to create a new Android project in Xamarin and Visual Studio."
article:
- title: "Hello, Android"
url: /guides/android/getting_started/hello,_world
url: https://developer.xamarin.com/guides/android/getting_started/hello,_world
---
<a name="Recipe" class="injected"></a>

Просмотреть файл

@ -4,7 +4,7 @@ title: "Send an Email"
brief: "This recipe shows how to send an email using an Intent."
article:
- title: "Hello, Multiscreen Applications"
url: /guides/android/getting_started/hello,_multi-screen_applications
url: https://developer.xamarin.com/guides/android/getting_started/hello,_multi-screen_applications
---
<a name="Recipe" class="injected"></a>

Просмотреть файл

@ -4,7 +4,7 @@ title: "Moving to Notification Channels "
brief: "This recipe demonstrates how to convert an existing Xamarin.Android app to use the notification channels feature introduced in Android Oreo."
article:
- title: "Notification Channels"
url: /guides/android/application_fundamentals/notifications/local_notifications_in_android/#Notification_Channels
url: https://developer.xamarin.com/guides/android/application_fundamentals/notifications/local_notifications_in_android/#Notification_Channels
samplecode:
- title: "Local Notifications"
url: /samples/monodroid/LocalNotifications/
@ -105,7 +105,7 @@ Try adding a second notification channel by doing the following:
app permission **Categories** as **Important Alerts**.
For more information about notification channels in Xamarin.Android, see
[Notification Channels](/guides/android/application_fundamentals/notifications/local_notifications_in_android/#Notification_Channels).
[Notification Channels](https://developer.xamarin.com/guides/android/application_fundamentals/notifications/local_notifications_in_android/#Notification_Channels).
# Summary

Просмотреть файл

@ -4,7 +4,7 @@ title: "Geocode an Address"
brief: "This recipe shows how use the Geocoder to get a latitude and longitude for an address."
article:
- title: "Maps and Location"
url: /guides/android/platform_features/maps_and_location
url: https://developer.xamarin.com/guides/android/platform_features/maps_and_location
sdk:
- title: "Geocoder API"
url: http://developer.android.com/reference/android/location/Geocoder.html

Просмотреть файл

@ -4,7 +4,7 @@ title: "Reverse Geocode a Location"
brief: "This recipe shows how use the Geocoder to get an address from a latitude and longitude."
article:
- title: "Maps and Location"
url: /guides/android/platform_features/maps_and_location
url: https://developer.xamarin.com/guides/android/platform_features/maps_and_location
sdk:
- title: "Geocoder API"
url: http://developer.android.com/reference/android/location/Geocoder.html

Просмотреть файл

@ -4,7 +4,7 @@ title: "Get Current Device Location"
brief: "This recipe shows how to get the location of a device using Android.Location.LocationManager."
article:
- title: "Maps and Location"
url: /guides/android/platform_features/maps_and_location
url: https://developer.xamarin.com/guides/android/platform_features/maps_and_location
samplecode:
- title: "FusedLocationProvider"
url: /samples/FusedLocationProvider/
@ -20,7 +20,7 @@ This recipe will show how to get the location of the device. When a button on th
[ ![](Images/GetLocation1.png)](Images/GetLocation1.png)
> 🚫 This recipe is deprecated but is retained to support those devices that do not have Google Play Services installed. Android applications should use the [Fused Location Provider](/guides/android/platform_features/maps_and_location/location/#Get_Location_with_Google_Location_Services_and_the_Fused_Location_Provider) that is available through Google Play Services.
> 🚫 This recipe is deprecated but is retained to support those devices that do not have Google Play Services installed. Android applications should use the [Fused Location Provider](https://developer.xamarin.com/guides/android/platform_features/maps_and_location/location/#Get_Location_with_Google_Location_Services_and_the_Fused_Location_Provider) that is available through Google Play Services.
# Recipe

Просмотреть файл

@ -4,9 +4,9 @@ title: "Create a Fragment"
brief: "Fragments are a new UI component originally introduced in Android 3.0 (API level 11) and later and require Mono for Android 4.0 or higher. To use Fragments in older versions of Android requires the Android Support Package and Xamarin.Android 4.2, which is covered in an another HOW-TO. This recipe will show how to create a simple Fragment."
article:
- title: "Fragments"
url: /guides/android/platform_features/fragments
url: https://developer.xamarin.com/guides/android/platform_features/fragments
- title: "Fragments Walkthrough"
url: /guides/android/platform_features/fragments/fragments_walkthrough
url: https://developer.xamarin.com/guides/android/platform_features/fragments/fragments_walkthrough
sdk:
- title: "Fragments"
url: http://developer.android.com/guide/topics/fundamentals/fragments.html

Просмотреть файл

@ -6,9 +6,9 @@ article:
- title: "Create a Fragment"
url: /Recipes/android/other_ux/fragment/create_a_fragment
- title: "Fragments"
url: /guides/android/platform_features/fragments
url: https://developer.xamarin.com/guides/android/platform_features/fragments
- title: "Fragments Walkthrough"
url: /guides/android/platform_features/fragments/fragments_walkthrough
url: https://developer.xamarin.com/guides/android/platform_features/fragments/fragments_walkthrough
sdk:
- title: "DatePickerDialog"
url: http://developer.android.com/reference/android/app/DialogFragment.html

Просмотреть файл

@ -4,7 +4,7 @@ title: "Display a stream from the camera"
brief: "This recipe shows how to display a stream from the camera using a TextureView."
article:
- title: "Introduction to Ice Cream Sandwich"
url: /guides/android/platform_features/introduction_to_ice_cream_sandwich
url: https://developer.xamarin.com/guides/android/platform_features/introduction_to_ice_cream_sandwich
sdk:
- title: "Android 4.0 Graphics and Animations"
url: http://android-developers.blogspot.com/2011/11/android-40-graphics-and-animations.html

Просмотреть файл

@ -3,7 +3,7 @@ id: AC297FB9-C012-4D0C-744C-7E9D1F6FDF83
title: "Detect Screen Size"
article:
- title: "Creating Resources for Varying Screens"
url: /guides/android/application_fundamentals/resources_in_android/part_4_-_creating_resources_for_varying_screens
url: https://developer.xamarin.com/guides/android/application_fundamentals/resources_in_android/part_4_-_creating_resources_for_varying_screens
sdk:
- title: "Supporting Multiple Screens"
url: http://developer.android.com/guide/practices/screens_support.html

Просмотреть файл

@ -7,7 +7,7 @@ samplecode:
url: /Samples/LoadingLargeBitmaps/
article:
- title: "Garbage Collection"
url: /guides/android/advanced_topics/garbage_collection
url: https://developer.xamarin.com/guides/android/advanced_topics/garbage_collection
sdk:
- title: "Load Large Bitmaps Efficiently"
url: http://developer.android.com/training/displaying-bitmaps/load-bitmap.html

Просмотреть файл

@ -7,7 +7,7 @@ samplecode:
url: /samples/monodroid/WeatherREST
article:
- title: "Introduction to Web Services"
url: /guides/cross-platform/application_fundamentals/web_services/
url: https://developer.xamarin.com/guides/cross-platform/application_fundamentals/web_services/
---
# Recipe
@ -39,11 +39,11 @@ screen.
Developer Preview, but an earlier Android version such as KitKat
(API level 19) can be used. If you are new to Android development
with Xamarin, see
[Hello, Android](/guides/android/getting_started/hello,android/)
[Hello, Android](https://developer.xamarin.com/guides/android/getting_started/hello,android/)
to learn how to create Xamarin.Android applications.
- Next, we'll use the Xamarin.Android Designer to create a UI (see
[Designer Overview](/guides/android/user_interface/designer_overview/) if
[Designer Overview](https://developer.xamarin.com/guides/android/user_interface/designer_overview/) if
you are not familiar with the Android interface designer). Let's
start by replacing the contents of **Resources/layout/Main.axml**
with the XML example below. This code begins the GUI layout with
@ -277,7 +277,7 @@ button.Click += async (sender, e) => {
responsive to user input while the app waits for the HTTP request
and response to complete. For more about asynchronous programming
techniques, see
[Writing Reponsive Applications](/guides/android/advanced_topics/writing_responsive_applications).
[Writing Reponsive Applications](https://developer.xamarin.com/guides/android/advanced_topics/writing_responsive_applications).
Let's add the following method after the `OnCreate` method. This
method issues the HTTP request, waits for a response, and returns
@ -439,7 +439,7 @@ asynchronously via `async`/`await`, the app is responsive to user
input during network operations.
For more information about integrating with web services,
[Introduction to Web Services](/guides/cross-platform/application_fundamentals/web_services/)
[Introduction to Web Services](https://developer.xamarin.com/guides/cross-platform/application_fundamentals/web_services/)
explains how to integrate REST, WCF, and SOAP web service technologies
with Xamarin mobile applications.

Просмотреть файл

@ -22,6 +22,6 @@ The following code shows how to play a sound effect:
CCAudioEngine.SharedEngine.PlayEffect (filename:"Electricity");
```
CocosSharp supports the MonoGame content pipeline types (.xnb files) for music and sound effects. For information on using the content pipeline, see the [CocosSharp Content Pipeline Guide](/guides/cross-platform/game_development/cocossharp/content_pipeline/).
CocosSharp supports the MonoGame content pipeline types (.xnb files) for music and sound effects. For information on using the content pipeline, see the [CocosSharp Content Pipeline Guide](https://developer.xamarin.com/guides/cross-platform/game_development/cocossharp/content_pipeline/).
For a full example on playing audio, see the [CCAudioEngine sample](/samples/mobile/CCAudioEngine/).

Просмотреть файл

@ -4,7 +4,7 @@ title: "Output Information to Log Window"
brief: "This recipe shows how to debug using the log window."
article:
- title: "Debugging"
url: /guides/ios/deployment,_testing,_and_metrics/debugging_in_xamarin_ios
url: https://developer.xamarin.com/guides/ios/deployment,_testing,_and_metrics/debugging_in_xamarin_ios
---
<a name="Recipe" class="injected"></a>

Просмотреть файл

@ -4,7 +4,7 @@ title: "Set A Breakpoint"
brief: "This recipe shows how to set regular and conditional breakpoints."
article:
- title: "Debugging"
url: /guides/ios/deployment,_testing,_and_metrics/debugging_in_xamarin_ios
url: https://developer.xamarin.com/guides/ios/deployment,_testing,_and_metrics/debugging_in_xamarin_ios
---
<a name="Recipe" class="injected"></a>

Просмотреть файл

@ -4,7 +4,7 @@ title: "Step Through Code"
brief: "This recipe shows how to step into, over, and out of functions."
article:
- title: "Debugging"
url: /guides/ios/deployment,_testing,_and_metrics/debugging_in_xamarin_ios
url: https://developer.xamarin.com/guides/ios/deployment,_testing,_and_metrics/debugging_in_xamarin_ios
---
<a name="Recipe" class="injected"></a>

Просмотреть файл

@ -4,7 +4,7 @@ title: "Use Initial Screen in Tab Controller"
brief: "This recipe shows how include the initial screen in a tab controller after a user interacts with the screen."
article:
- title: "Creating Tabbed Appliations"
url: /guides/ios/user_interface/creating_tabbed_applications/
url: https://developer.xamarin.com/guides/ios/user_interface/creating_tabbed_applications/
---
<a name="Recipe" class="injected"></a>

Просмотреть файл

@ -7,7 +7,7 @@ brief: "This recipe shows how to use multiple detail controllers, where the cont
# Recipe
This recipes uses [MonoTouch.Dialog](/guides/ios/user_interface/monotouch.dialog/)
This recipes uses [MonoTouch.Dialog](https://developer.xamarin.com/guides/ios/user_interface/monotouch.dialog/)
to build the user interface. To include **MonoTouch.Dialog** in your app,
right click on the iOS project's **References** node and select **Edit References**,
then ensure the **MonoTouch.Dialog-1** assembly is ticked.

Просмотреть файл

@ -4,7 +4,7 @@ title: "Create an iOS Project"
brief: "This recipe shows how to create a new iOS project."
article:
- title: "Hello, iPhone"
url: /guides/ios/getting_started/hello,_world
url: https://developer.xamarin.com/guides/ios/getting_started/hello,_world
---
<a name="Recipe" class="injected"></a>
@ -24,7 +24,7 @@ article:
<ide name="vs">
<h2>Create an iOS Project in Visual Studio</h2>
<ol>
<li><a href="/guides/ios/getting_started/introduction_to_xamarin_ios_for_visual_studio">Make sure Xamarin.iOS for Visual Studio is configured correctly</a>. Launch Visual Studio and choose <span class="UIItem">File > New > Project</span>: <im src="Images/ios_project_00_vs.png" /></li>
<li><a href="https://developer.xamarin.com/guides/ios/getting_started/introduction_to_xamarin_ios_for_visual_studio">Make sure Xamarin.iOS for Visual Studio is configured correctly</a>. Launch Visual Studio and choose <span class="UIItem">File > New > Project</span>: <im src="Images/ios_project_00_vs.png" /></li>
<li>A window will pop up with a list of options for the types of projects available to you. To create an iOS project, choose the <span class="UIItem">Templates</span> and then the <span class="UIItem">Visual C#</span> category to open up the available sub-categories, then select <span class="UIItem">iOS</span>:<img src="Images/ios_project_01_vs.png" /></li>
<li>Choose your device from the menu on the left. If you are new to Xamarin.iOS and unsure about what template to use, select <span class="UIItem">Single View Application</span> from the panel on the right. This will create an application with one view and one View Controller.</li>

Просмотреть файл

@ -7,9 +7,9 @@ samplecode:
url: https://github.com/xamarin/recipes/tree/master/ios/general/storyboard/unwind_segue
article:
- title: "Introduction to Storybords"
url: /guides/ios/user_interface/introduction_to_storyboards/
url: https://developer.xamarin.com/guides/ios/user_interface/introduction_to_storyboards/
- title: "Xamarin Designer for iOS"
url: /guides/ios/user_interface/designer/
url: https://developer.xamarin.com/guides/ios/user_interface/designer/
sdk:
- title: "UIStoryboard Class Reference&nbsp;"
url: http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIStoryboard_Class/Reference/Reference.html

Просмотреть файл

@ -3,10 +3,10 @@ id: 0E7383D8-C50A-40C9-9F15-0F17558721DA
title: "Creating a Launch Screen using a .xib"
article:
- title: "Managing Launch Screens"
url: /guides/ios/application_fundamentals/working_with_images/launch-screens/#Managing_Launch_Screens
url: https://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images/launch-screens/#Managing_Launch_Screens
---
Although Storyboard-based launch screens are most favored by Apple, they can also be created using either a .xib. Regardless of which way you choose, you can now add, design, and create your Launch Screen inside Visual Studio for Mac or Visual Studio using the Xamarin Designer for iOS. For more information on creating a Launch Screen as a Storyboard visit the [Launch Screen](/guides/ios/application_fundamentals/working_with_images/launch-screens/#Managing_Launch_Screens_with_Storyboards) guide.
Although Storyboard-based launch screens are most favored by Apple, they can also be created using either a .xib. Regardless of which way you choose, you can now add, design, and create your Launch Screen inside Visual Studio for Mac or Visual Studio using the Xamarin Designer for iOS. For more information on creating a Launch Screen as a Storyboard visit the [Launch Screen](https://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images/launch-screens/#Managing_Launch_Screens_with_Storyboards) guide.
# Recipe

Просмотреть файл

@ -43,7 +43,7 @@ yet manage properties nor handle events on the controls in the view. For example
* **View partial class** – This class handles everything that happens in the view from the frame size, event handling, and contains the constructor that describes the view whenever it is instantiated.
* **Designer partial class** – This maps the .xib controls to C# objects and is the glue that makes the controls we defined in the .xib available in the View partial class. The designer file is auto-generated by Visual Studio for Mac. It should never be edited by hand as Visual Studio for Mac will just overwrite manual changes the next time the .xib is updated.
To connect these C# files to our .xib file, select the root view on the [design surface](/guides/ios/user_interface/designer/introduction/#iOS_Designer_features), and under *Widget > Identity* set the **Class** to `SomeView` and press **Enter**:
To connect these C# files to our .xib file, select the root view on the [design surface](https://developer.xamarin.com/guides/ios/user_interface/designer/introduction/#iOS_Designer_features), and under *Widget > Identity* set the **Class** to `SomeView` and press **Enter**:
<ide name="xs">
<a href="Images/image03.png"><img src="Images/image03.png"></a>

Просмотреть файл

@ -4,7 +4,7 @@ title: "Create a Transparent Region in a View"
brief: "This recipe shows how to create a transparent region within a view."
article:
- title: "Core Graphics guide"
url: /guides/ios/application_fundamentals/graphics_animation_ios/core_graphics/
url: https://developer.xamarin.com/guides/ios/application_fundamentals/graphics_animation_ios/core_graphics/
sdk:
- title: "Quartz 2D Programming Guide"
url: https://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/Introduction/Introduction.html

Просмотреть файл

@ -6,7 +6,7 @@ article:
- title: "Save Photo to Album with Metadata"
url: /Recipes/ios/media/video_and_photos/save_photo_to_album_with_metadata
- title: "Introduction to Core Image"
url: /guides/ios/platform_features/introduction_to_coreimage
url: https://developer.xamarin.com/guides/ios/platform_features/introduction_to_coreimage
sdk:
- title: "CIFilter Class Reference"
url: http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Reference/QuartzCoreFramework/Classes/CIFilter_Class/Reference/Reference.html

Просмотреть файл

@ -3,7 +3,7 @@ id: 145134BE-FD78-42DB-139D-FE4F54505499
title: "Merge Images"
article:
- title: "Working with Images"
url: /guides/ios/application_fundamentals/working_with_images
url: https://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images
sdk:
- title: "Quartz 2D Programming Guide"
url: https://developer.apple.com/library/mac/#documentation/graphicsimaging/conceptual/drawingwithquartz2d/Introduction/Introduction.html

Просмотреть файл

@ -4,7 +4,7 @@ title: "Rotate An Image View"
brief: "This recipe shows how to rotate an image on the screen using a UIImageView and a CGAffineTransform."
article:
- title: "Working with Images"
url: /guides/ios/application_fundamentals/working_with_images
url: https://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images
sdk:
- title: "Quartz 2D Programming Guide"
url: https://developer.apple.com/library/mac/#documentation/graphicsimaging/conceptual/drawingwithquartz2d/Introduction/Introduction.html

Просмотреть файл

@ -92,7 +92,7 @@ To implement the photo picker:
![Select Privacy Key](Images/privacy-key.png)
**Note** You must add the [key/value pair](/guides/ios/deployment,_testing,_and_metrics/provisioning/infoplist-reference/#Photos) into the Info.plist file. This allows the user to grant your app permission to use the Photo library. If you don't, your app will crash.
**Note** You must add the [key/value pair](https://developer.xamarin.com/guides/ios/deployment,_testing,_and_metrics/provisioning/infoplist-reference/#Photos) into the Info.plist file. This allows the user to grant your app permission to use the Photo library. If you don't, your app will crash.
# Additional Information

Просмотреть файл

@ -13,7 +13,7 @@ dateupdated: 2017-03-02
> **Note:** The `MPMoviePlayerController` class has been deprecated in iOS 9 and later. Use `AVPictureInPictureController` or `AVPlayerViewController` instead. Please see our [Picture in Picture](/guides/ios/platform_features/introduction_to_ios9/multitasking/#Picture_in_Picture) documentation.
> **Note:** The `MPMoviePlayerController` class has been deprecated in iOS 9 and later. Use `AVPictureInPictureController` or `AVPlayerViewController` instead. Please see our [Picture in Picture](https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/multitasking/#Picture_in_Picture) documentation.
# Recipe

Просмотреть файл

@ -53,7 +53,7 @@ if (CLLocationManager.LocationServicesEnabled) {
```
LocMgr.LocationsUpdated += (o, e) =&gt; Console.WriteLine ("Location change received");
```
> **Note**: The application has approximately 10 seconds after the `LocationsUpdated` event fires to run code in the background. If you want to run a process that takes more than 10 seconds, wrap it in a [Background Task](/guides/cross-platform/application_fundamentals/backgrounding/part_3_ios_backgrounding_techniques/ios_backgrounding_with_tasks).
> **Note**: The application has approximately 10 seconds after the `LocationsUpdated` event fires to run code in the background. If you want to run a process that takes more than 10 seconds, wrap it in a [Background Task](https://developer.xamarin.com/guides/cross-platform/application_fundamentals/backgrounding/part_3_ios_backgrounding_techniques/ios_backgrounding_with_tasks).
<ol start="7">
<li>Call the following method to stop monitoring location:</li>

Просмотреть файл

@ -4,7 +4,7 @@ title: "Contacts"
dateupdated: 2016-06-08
article:
- title: "Contacts and ContactUI"
url: /guides/ios/platform_features/introduction_to_ios9/contacts/
url: https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/contacts/
---
With the introduction of iOS 9, Apple has released two new frameworks, Contacts and ContactsUI, that replace the existing Address Book and Address Book UI frameworks used by iOS 8 and earlier.

Просмотреть файл

@ -5,7 +5,7 @@ brief: "This recipe shows how to select a contact using the CNContactPickerViewC
dateupdated: 2016-06-08
article:
- title: "Contacts and ContactUI"
url: /guides/ios/platform_features/introduction_to_ios9/contacts/
url: https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/contacts/
---
<a name="Recipe" class="injected"></a>
@ -169,5 +169,5 @@ Let's look at this code in detail:
<a name="Additional_Information" class="injected"></a>
# Additional Information
For more information, please see our [Contacts and ContactUI](/guides/ios/platform_features/introduction_to_ios9/contacts/) documentation.
For more information, please see our [Contacts and ContactUI](https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/contacts/) documentation.

Просмотреть файл

@ -5,7 +5,7 @@ brief: "This recipe shows how to create a new contact using a CNContactViewContr
dateupdated: 2016-06-08
article:
- title: "Contacts and ContactUI"
url: /guides/ios/platform_features/introduction_to_ios9/contacts/
url: https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/contacts/
---
<a name="Recipe" class="injected"></a>
@ -86,5 +86,5 @@ Let's look at this code in detail:
<a name="Additional_Information" class="injected"></a>
# Additional Information
For more information, please see our [Contacts and ContactUI](/guides/ios/platform_features/introduction_to_ios9/contacts/) documentation.
For more information, please see our [Contacts and ContactUI](https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/contacts/) documentation.

Просмотреть файл

@ -5,7 +5,7 @@ brief: "This recipe shows how to find a contact using the ABAddressBook class."
dateupdated: 2016-06-08
article:
- title: "Contacts and ContactUI"
url: /guides/ios/platform_features/introduction_to_ios9/contacts/
url: https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/contacts/
---
<a name="Recipe" class="injected"></a>
@ -85,5 +85,5 @@ Let's look at this code in detail:
<a name="Additional_Information" class="injected"></a>
# Additional Information
For more information, please see our [Contacts and ContactUI](/guides/ios/platform_features/introduction_to_ios9/contacts/) documentation.
For more information, please see our [Contacts and ContactUI](https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/contacts/) documentation.

Просмотреть файл

@ -12,7 +12,7 @@ brief: This recipe shows how to change the font of a UILabel.
##Note
This Recipe can be opened using [Sketches](/guides/cross-platform/sketches/). Clicking on the article link to the right, will automatically open a sketch in Xamarin Studio.
This Recipe can be opened using [Sketches](https://developer.xamarin.com/guides/cross-platform/sketches/). Clicking on the article link to the right, will automatically open a sketch in Xamarin Studio.
#Recipe
This short recipe will first create a new label, and display some text in it. We will then set the font name and size, and lastly will add some aditional properties affecting how the label is displayed.

Просмотреть файл

@ -5,7 +5,7 @@ subtitle: "Evaluating JavaScript hosted in a WebView"
brief: "This recipe shows how to call a JavaScript function from C#, where the JavaScript function is defined in a web page hosted by the WebView control."
article:
- title: "WebView"
url: /guides/xamarin-forms/user-interface/webview/
url: https://developer.xamarin.com/guides/xamarin-forms/user-interface/webview/
api:
- title: "WebView"
url: /api/type/Xamarin.Forms.WebView/

Просмотреть файл

@ -5,11 +5,11 @@ subtitle: "Rendering a PDF using the HTML5 canvas element"
brief: "This recipe shows how to display a local PDF file in a WebView control on each platform."
article:
- title: "WebView"
url: /guides/xamarin-forms/user-interface/webview/
url: https://developer.xamarin.com/guides/xamarin-forms/user-interface/webview/
- title: "Implementing a View"
url: /guides/xamarin-forms/custom-renderer/view/
url: https://developer.xamarin.com/guides/xamarin-forms/custom-renderer/view/
- title: "Implementing a HybridWebView"
url: /guides/xamarin-forms/custom-renderer/hybridwebview/
url: https://developer.xamarin.com/guides/xamarin-forms/custom-renderer/hybridwebview/
api:
- title: "WebView"
url: /api/type/Xamarin.Forms.WebView/
@ -30,7 +30,7 @@ When a [`WebView`](/api/type/Xamarin.Forms.WebView/) control is rendered by a Xa
1. [Consume](#Consuming_the_Custom_Control) the custom control from Xamarin.Forms.
1. [Create](#Creating_the_Custom_Renderer_on_Each_Platform) the custom renderer for the control on each platform.
For information about customizing a [`WebView`](/api/type/Xamarin.Forms.WebView/) control using a custom renderer, see [Implementing a HybridWebView](/guides/xamarin-forms/custom-renderer/hybridwebview/).
For information about customizing a [`WebView`](/api/type/Xamarin.Forms.WebView/) control using a custom renderer, see [Implementing a HybridWebView](https://developer.xamarin.com/guides/xamarin-forms/custom-renderer/hybridwebview/).
## Creating the Custom WebView Control
@ -127,7 +127,7 @@ namespace DisplayPDF.iOS
Provided that the custom renderer is attached to a new Xamarin.Forms element, the `LoadRequest` method loads the local PDF file that's specified by the `CustomWebView.Uri` property. The code assumes that the file is stored in the `Content` folder of the project. Pinch-to-zoom functionality is enabled by setting the `ScalesPageToFit` property to `true`.
For more information about subclassing the `ViewRenderer<T1, T2>` class, see [Implementing a View](/guides/xamarin-forms/custom-renderer/view/).
For more information about subclassing the `ViewRenderer<T1, T2>` class, see [Implementing a View](https://developer.xamarin.com/guides/xamarin-forms/custom-renderer/view/).
### Creating the Custom Renderer on Android

Просмотреть файл

@ -12,7 +12,7 @@ dateupdated: 2017-08-04
# Overview
Xamarin.Auth is a cross-platform SDK for authenticating users and storing their accounts. It can be used to securely store `Account` objects in an account store so that applications do not always have to re-authenticate users. For information about using Xamarin.Auth to authenticate users, see [Authenticating Users with an Identity Provider](/guides/xamarin-forms/web-services/authentication/oauth/).
Xamarin.Auth is a cross-platform SDK for authenticating users and storing their accounts. It can be used to securely store `Account` objects in an account store so that applications do not always have to re-authenticate users. For information about using Xamarin.Auth to authenticate users, see [Authenticating Users with an Identity Provider](https://developer.xamarin.com/guides/xamarin-forms/web-services/authentication/oauth/).
## Storing Account Information

Просмотреть файл

@ -5,7 +5,7 @@ subtitle: "How to convert a street address to latitude and longitude coordinates
brief: "This recipe shows how to geocode a user supplied street address to latitude and longitude coordinates by using the `Geocoder` class included in Xamarin.Forms.Maps."
article:
- title: "Working with Maps in Xamarin.Forms"
url: /guides/xamarin-forms/working-with/maps/
url: https://developer.xamarin.com/guides/xamarin-forms/working-with/maps/
api:
- title: "Geocoder"
url: /api/type/Xamarin.Forms.Maps.Geocoder/
@ -15,7 +15,7 @@ api:
The Xamarin.Forms.Maps NuGet package is used to add maps to a Xamarin.Forms app, and uses the native map APIs on each platform. This NuGet package provides the `Geocoder` class that converts between string addresses and latitude and longitudes.
> **Note**: By using the native map APIs on each platform Xamarin.Forms.Maps provides a fast, familiar maps experience for users, but means that some configuration steps are required to adhere to each platforms specific API requirements. For information about these configuration steps see [Working with Maps in Xamarin.Forms](/guides/xamarin-forms/working-with/maps/).
> **Note**: By using the native map APIs on each platform Xamarin.Forms.Maps provides a fast, familiar maps experience for users, but means that some configuration steps are required to adhere to each platforms specific API requirements. For information about these configuration steps see [Working with Maps in Xamarin.Forms](https://developer.xamarin.com/guides/xamarin-forms/working-with/maps/).
## Geocoding a street address

Просмотреть файл

@ -3,7 +3,7 @@ id: 489036D7-D1C5-4919-BBDA-D49D4539F0E1
title: "Xamarin.Forms Map Recipes"
article:
- title: "Customizing a Map"
url: /guides/xamarin-forms/custom-renderer/map/
url: https://developer.xamarin.com/guides/xamarin-forms/custom-renderer/map/
pdftype: none
---

Просмотреть файл

@ -8,7 +8,7 @@ samplecode:
url: https://github.com/xamarin/recipes/tree/master/cross-platform/xamarin-forms/Maps/ReverseGeocode/
article:
- title: "Working with Maps in Xamarin.Forms"
url: /guides/xamarin-forms/working-with/maps/
url: https://developer.xamarin.com/guides/xamarin-forms/working-with/maps/
api:
- title: "Geocoder"
url: /api/type/Xamarin.Forms.Maps.Geocoder/
@ -18,7 +18,7 @@ api:
The Xamarin.Forms.Maps NuGet package is used to add maps to a Xamarin.Forms app, and uses the native map APIs on each platform. This NuGet package provides the `Geocoder` class that converts between string addresses and latitude and longitudes.
> **Note**: By using the native map APIs on each platform Xamarin.Forms.Maps provides a fast, familiar maps experience for users, but means that some configuration steps are required to adhere to each platforms specific API requirements. For information about these configuration steps see [Working with Maps in Xamarin.Forms](/guides/xamarin-forms/working-with/maps/).
> **Note**: By using the native map APIs on each platform Xamarin.Forms.Maps provides a fast, familiar maps experience for users, but means that some configuration steps are required to adhere to each platforms specific API requirements. For information about these configuration steps see [Working with Maps in Xamarin.Forms](https://developer.xamarin.com/guides/xamarin-forms/working-with/maps/).
## Reverse geocoding a street address

Просмотреть файл

@ -122,7 +122,7 @@ public App ()
When the callback for the `ShowItem` message is executed, the `TodoItem` for the identifier is retrieved. The `TodoItemPage` is then navigated to, where the `TodoItem` instance is displayed through data binding.
For more information about using the [`MessagingCenter`](/api/type/Xamarin.Forms.MessagingCenter/) class, see [Publish and Subscribe with MessagingCenter](/guides/xamarin-forms/messaging-center/).
For more information about using the [`MessagingCenter`](/api/type/Xamarin.Forms.MessagingCenter/) class, see [Publish and Subscribe with MessagingCenter](https://developer.xamarin.comhttps://developer.xamarin.com/guides/xamarin-forms/messaging-center/).
## Deleting an Item
@ -141,7 +141,7 @@ public void DeleteSearchItem (TodoItem item)
}
```
Core Spotlight provides multiple approaches to deleting an indexed item when it's no longer required. For more information see [Deleting an Item](/guides/ios/platform_features/introduction_to_ios9/search/corespotlight/#Deleting_an_Item).
Core Spotlight provides multiple approaches to deleting an indexed item when it's no longer required. For more information see [Deleting an Item](https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/search/corespotlight/#Deleting_an_Item).
# Summary

Просмотреть файл

@ -23,7 +23,7 @@ The following screenshot shows the tab bar after it has been customized:
## Tab Color
To change the color used for the iOS tabs, follow the instructions for
setting [iOS-specific styles](/guides/xamarin-forms/platform-features/ios/theme/)
setting [iOS-specific styles](https://developer.xamarin.com/guides/xamarin-forms/platform-features/ios/theme/)
with Xamarin.Forms.
The following code is added to the **AppDelegate.cs** file in the
@ -35,7 +35,7 @@ UITabBar.Appearance.SelectedImageTintColor = UIColor.Brown;
## Font
A [custom renderer](/guides/xamarin-forms/custom-renderer/) is required to
A [custom renderer](https://developer.xamarin.com/guides/xamarin-forms/custom-renderer/) is required to
customize the font face, style, and size. The complete custom renderer
code is shown below. It uses the *Chalkboard* font in both *Light* and *Bold*
styles, and 9 point font for unselected tabs with 12 point for the selected tab.

Просмотреть файл

@ -3,7 +3,7 @@ id: 4ED7EA00-1B24-4962-B2A4-FE9BFFC1E652
title: "Fixing ListView and TableView width on iPad"
article:
- title: "Custom Renderers"
url: /guides/xamarin-forms/custom-renderer/
url: https://developer.xamarin.com/guides/xamarin-forms/custom-renderer/
api:
- title: "ListView"
url: /api/type/Xamarin.Forms.ListView/

Просмотреть файл

@ -5,7 +5,7 @@ subtitle: "Making an app searchable through Spotlight search and Siri"
brief: "This recipe shows how to use the iOS 9 NSUserActivity class to make Xamarin.Forms app content searchable through Spotlight search and Siri."
article:
- title: "Search with NSUSerActivity"
url: /guides/ios/platform_features/introduction_to_ios9/search/nsuseractivity/
url: https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/search/nsuseractivity/
api:
- title: "NSUSerActivity"
url: /api/type/Foundation.NSUserActivity/
@ -13,7 +13,7 @@ api:
# Overview
The [`NSUserActivity`](/api/type/Foundation.NSUserActivity/) class provides support for defining a user's activity so that it can potentially be continued on another of the user's devices, and is typically used to provide data for [Handoff](/guides/ios/platform_features/introduction_to_ios9/handoff/). In iOS 9, each activity can also be indexed and searched from Spotlight search, therefore making app interaction history searchable by the user. If the user selects a search result that belongs to an activity from an app, the app will be launched and the activity described by the `NSUserActivity` will be restarted and presented to the user. In addition, by adopting app search via activities, additional benefits become available such as Siri suggestions and smart reminders. For more information, see [Search with NSUserActivity](/guides/ios/platform_features/introduction_to_ios9/search/nsuseractivity/).
The [`NSUserActivity`](/api/type/Foundation.NSUserActivity/) class provides support for defining a user's activity so that it can potentially be continued on another of the user's devices, and is typically used to provide data for [Handoff](https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/handoff/). In iOS 9, each activity can also be indexed and searched from Spotlight search, therefore making app interaction history searchable by the user. If the user selects a search result that belongs to an activity from an app, the app will be launched and the activity described by the `NSUserActivity` will be restarted and presented to the user. In addition, by adopting app search via activities, additional benefits become available such as Siri suggestions and smart reminders. For more information, see [Search with NSUserActivity](https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/search/nsuseractivity/).
The sample app demonstrates a Todo list application where the data is stored in an in-memory collection. As each `TodoItem` is displayed on the `TodoItemPage`, the navigation point will be indexed so that it can be found by Spotlight search, as shown in the following screenshot:
@ -77,7 +77,7 @@ The searchable activity is created as follows:
> **Note**: Activities that are marked as the current activity by the `BecomeCurrent` method must later have the [`ResignCurrent`](/api/member/Foundation.NSUserActivity.ResignCurrent()/) method called. This method tells the activity that it should no longer be the activity currently in use by the user. In the sample app this occurs when the user navigates back to the `TodoListPage`.
The `CreateActivity` method can be extended to create activities that are added to Apple's cloud-based index and presented to users (via search) who have not already installed the app on their device. For more information, see [Public Search Indexing](/guides/ios/platform_features/introduction_to_ios9/search/nsuseractivity/#Public_Search_Indexing).
The `CreateActivity` method can be extended to create activities that are added to Apple's cloud-based index and presented to users (via search) who have not already installed the app on their device. For more information, see [Public Search Indexing](https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/search/nsuseractivity/#Public_Search_Indexing).
## Responding to an Activity
@ -118,7 +118,7 @@ public App ()
When the callback for the `ShowItem` message is executed, the `TodoItem` for the identifier is retrieved. Provided that it's not `null`, the `TodoItemPage` is then navigated to, where the `TodoItem` instance is displayed through data binding.
For more information about using the [`MessagingCenter`](/api/type/Xamarin.Forms.MessagingCenter/) class, see [Publish and Subscribe with MessagingCenter](/guides/xamarin-forms/messaging-center/).
For more information about using the [`MessagingCenter`](/api/type/Xamarin.Forms.MessagingCenter/) class, see [Publish and Subscribe with MessagingCenter](https://developer.xamarin.com/guides/xamarin-forms/messaging-center/).
# Summary

Просмотреть файл

@ -5,7 +5,7 @@ subtitle: "How to make data entry easier by turning off auto-capitalization and
brief: "This recipe shows how to build a custom renderer for an Entry that prevents iOS from changing what the user types."
article:
- title: "Customizing Controls for Each Platform"
url: /guides/xamarin-forms/custom-renderer/
url: https://developer.xamarin.com/guides/xamarin-forms/custom-renderer/
api:
- title: "Entry"
url: /api/type/Xamarin.Forms.Entry/