नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Introduction
The DependencyService class is a service locator that enables Xamarin.Forms applications to invoke native platform functionality from shared code.
Registration and Resolution
Platform implementations must be registered with the DependencyService, and then resolved from shared code to invoke them.
Picking a Photo from the Library
This article explains how to use the Xamarin.Forms DependencyService class to pick a photo from the phone's picture library.