---
title: "Define use of ALAsset in Photo Library in iOS."  
description: "Define use of ALAsset in Photo Library in iOS."  
author: "Tarun Kumar"  
published: 2015-12-23  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/22952/define-use-of-alasset-in-photo-library-in-ios  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# Define use of ALAsset in Photo Library in iOS.

**ALAsset** is used to get **Photo or Video** in the Photo Library. It can be describe itself through Key-Value pairs called **Properties**. ALAsset can report photo/video creation date, its orientation.If it is a photo whose **metadata** contains this information and it contains **duration** if it is a video.To fetch property value use - **valueForProperty:** method (the property have names like **ALAssetPropertyType**).

## Answers

### Answer by Tarun Kumar

**ALAsset** is used to get **Photo or Video** in the Photo Library. It can be describe itself through Key-Value pairs called **Properties**. ALAsset can report photo/video creation date, its orientation.If it is a photo whose **metadata** contains this information and it contains **duration** if it is a video.To fetch property value use - **valueForProperty:** method (the property have names like **ALAssetPropertyType**).


---

Original Source: https://www.mindstick.com/interview/22952/define-use-of-alasset-in-photo-library-in-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
