2019-03-21

day4:

photos:


圖1

Shared Photo Library:

Requesting Authorization to Access Photos//Prepare your app to ask for permission when accessing the user's photo library.請求權(quán)限

class?PHPhotoLibrary//A shared object that manages access and changes to the user’s shared photo library.

Asset Retrieval:

Fetching Objects and Requesting Changes//Get assets, asset collections, and collection lists matching a specified query.

class?PHAsset//A representation of an image, video, or Live Photo in the Photos library.

class?PHAssetCollection//A representation of a Photos asset grouping, such as a moment, user-created album, or smart album.

class?PHCollection//The abstract superclass for Photos asset collections and collection lists.

class?PHCollectionList//A group containing Photos asset collections, such as Moments, Years, or folders of user-created albums.

class?PHObject//The abstract superclass for Photos model objects (assets and collections).

class?PHFetchResult//An ordered list of assets or collections returned from a Photos fetch method.

class?PHFetchOptions//A set of options that affect the filtering, sorting, and management of results that Photos returns when you fetch asset or collection objects.

Asset Loading:

Loading and Caching Assets and Thumbnails//Request image, video, or Live Photos content, and cache for quick reuse.

class?PHImageManager//An object that facilitates retrieving or generating preview thumbnails and asset data.

class?PHCachingImageManager//An object that facilitates retrieving or generating preview thumbnails, optimized for batch preloading large numbers of assets.

class?PHImageRequestOptions//A set of options affecting the delivery of still image representations of Photos assets you request from an image manager.

class?PHVideoRequestOptions//A set of options affecting the delivery of video asset data that you request from an image manager.

class?PHLivePhotoRequestOptions//A set of options affecting the delivery of Live Photo assets you request from an image manager.

Live Photos:

Displaying Live Photos//Provide the same interactive playback of Live Photos as in the iOS Photos app.

class?PHLivePhotoView//A view that displays a Live Photo—a picture that also includes motion and sound from the moments just before and after its capture.

class?PHLivePhoto//A displayable representation of a Live Photo—a picture that includes motion and sound from the moments just before and after its capture.

Asset Resource Management:

class?PHAssetResource//An underlying data resource associated with a photo, video, or Live Photo asset in the Photos library.

class?PHAssetCreationRequest//A request to create a new Photos asset from underlying data resources, for use in a photo library change block.

class?PHAssetResourceCreationOptions//A set of options affecting the creation of a new Photos asset from underlying resources.

class?PHAssetResourceManager//A resource manager for the data storage underlying a Photos asset.

class?PHAssetResourceRequestOptions//A set of options affecting the delivery of underlying asset data that you request from the asset resource manager.

Photo Editing Extensions:

Creating Photo Editing Extensions//Allow your app to edit assets directly within the Photos app.

protocol?PHContentEditingController//A protocol your custom view controller class implements to provide a user interface for your Photos extension.

class?PHEditingExtensionContext//An object that provides Photos editing extensions with access to the underlying project and photo library.

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,872評論 0 10
  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,217評論 0 23
  • 我其實(shí)是一個(gè)落后的人,當(dāng)初同學(xué)都火熱的聊著Q時(shí),我還在瞪大了雙眼,聽那個(gè)心儀的男生描述人與機(jī)器無縫對話的神奇!...
    瞎Y子閱讀 360評論 0 0
  • 凌晨一兩點(diǎn)大概還會(huì)有那么一部分人在想東想西拎不清,或者是在網(wǎng)頁上翻過來翻過去,或者是打游戲。
    黎繁繁閱讀 140評論 0 0
  • 01. Jason不明白,為什么國外總有些個(gè)中餐館裝修得富麗堂皇,卻分毫對不起品味二字。不過他無暇欣賞環(huán)境,對即將...
    杰米貓閱讀 447評論 6 5

友情鏈接更多精彩內(nèi)容