PHAssetCreationRequest.AddResource 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddResource(PHAssetResourceType, NSData, PHAssetResourceCreationOptions) |
将 |
AddResource(PHAssetResourceType, NSUrl, PHAssetResourceCreationOptions) |
将指定 |
AddResource(PHAssetResourceType, NSData, PHAssetResourceCreationOptions)
将 data
指定 type
的 的 添加到此 PHAssetCreationRequest。
[Foundation.Export("addResourceWithType:data:options:")]
public virtual void AddResource (Photos.PHAssetResourceType type, Foundation.NSData data, Photos.PHAssetResourceCreationOptions options);
abstract member AddResource : Photos.PHAssetResourceType * Foundation.NSData * Photos.PHAssetResourceCreationOptions -> unit
override this.AddResource : Photos.PHAssetResourceType * Foundation.NSData * Photos.PHAssetResourceCreationOptions -> unit
参数
- type
- PHAssetResourceType
- data
- NSData
- 属性
适用于
AddResource(PHAssetResourceType, NSUrl, PHAssetResourceCreationOptions)
将指定 type
的 中的数据fileUrl
添加到此 PHAssetCreationRequest。
[Foundation.Export("addResourceWithType:fileURL:options:")]
public virtual void AddResource (Photos.PHAssetResourceType type, Foundation.NSUrl fileURL, Photos.PHAssetResourceCreationOptions options);
abstract member AddResource : Photos.PHAssetResourceType * Foundation.NSUrl * Photos.PHAssetResourceCreationOptions -> unit
override this.AddResource : Photos.PHAssetResourceType * Foundation.NSUrl * Photos.PHAssetResourceCreationOptions -> unit
参数
- type
- PHAssetResourceType
- fileURL
- NSUrl
- 属性