在 Xamarin iOS 應用程式中的資料和雲端服務Data and Cloud Services in Xamarin.iOS Apps

資料存取Data Access

大部分的應用程式都需要將資料儲存在本機裝置上。Most applications have some requirement to save data on the device locally. 除非完整的資料量很小,否則應用程式通常需要資料庫和資料層來管理資料庫存取。Unless the amount of data is trivially small, this usually requires a database and a data layer in the application to manage database access. iOS 的 Sqlite 資料庫引擎為「內建」,而 Xamarin 的平臺簡化了資料的存取,其隨附于 SQLite Data Provider。iOS has the Sqlite database engine “built in” and access to the data is simplified by Xamarin’s platform which comes with the SQLite Data Provider.

iCloudiCloud

ICloud 儲存體 API 可讓應用程式將使用者檔和應用程式特定的資料儲存到中央位置,並從所有使用者的裝置存取這些專案。The iCloud storage API allows applications to save user documents and application-specific data to a central location and access those items from all the user's devices.

CloudKitCloudKit

CloudKit 架構可簡化存取 iCloud 之應用程式的開發。The CloudKit framework streamlines the development of applications that access iCloud. 這包括抓取應用程式資料和資產許可權,以及能夠安全地儲存應用程式資訊。This includes the retrieval of application data and asset rights as well as being able to securely store application information. 此套件可讓使用者透過其 iCloud 識別碼存取應用程式,而不需要共用個人資訊,以提供匿名層。This kit gives users a layer of anonymity by allowing access to applications with their iCloud IDs without sharing personal information.