Package org.robovm.apple.photos
Class PHAsset
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.photos.PHObject
-
- org.robovm.apple.photos.PHAsset
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class PHAsset extends PHObject
- Since:
- Available in iOS 8.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PHAsset.PHAssetPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.photos.PHObject
PHObject.PHObjectPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description PHAsset()
protected
PHAsset(NSObject.Handle h, long handle)
protected
PHAsset(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.photos.PHObject
getLocalIdentifier
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
PHAsset
public PHAsset()
-
PHAsset
protected PHAsset(NSObject.Handle h, long handle)
-
PHAsset
protected PHAsset(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getPlaybackStyle
public PHAssetPlaybackStyle getPlaybackStyle()
- Since:
- Available in iOS 11.0 and later.
-
getMediaType
public PHAssetMediaType getMediaType()
-
getMediaSubtypes
public PHAssetMediaSubtype getMediaSubtypes()
-
getPixelWidth
public long getPixelWidth()
-
getPixelHeight
public long getPixelHeight()
-
getCreationDate
public NSDate getCreationDate()
-
getModificationDate
public NSDate getModificationDate()
-
getLocation
public CLLocation getLocation()
-
getDuration
public double getDuration()
-
isHidden
public boolean isHidden()
-
isFavorite
public boolean isFavorite()
-
getBurstIdentifier
public java.lang.String getBurstIdentifier()
-
getBurstSelectionTypes
public PHAssetBurstSelectionType getBurstSelectionTypes()
-
representsBurst
public boolean representsBurst()
-
getSourceType
public PHAssetSourceType getSourceType()
- Since:
- Available in iOS 9.0 and later.
-
canPerformEditOperation
public boolean canPerformEditOperation(PHAssetEditOperation editOperation)
-
fetchAssetsInAssetCollection
public static PHFetchResult<PHAsset> fetchAssetsInAssetCollection(PHAssetCollection assetCollection, PHFetchOptions options)
-
fetchAssetsWithLocalIdentifiers
public static PHFetchResult<PHAsset> fetchAssetsWithLocalIdentifiers(java.util.List<java.lang.String> identifiers, PHFetchOptions options)
-
fetchKeyAssetsInAssetCollection
public static PHFetchResult<PHAsset> fetchKeyAssetsInAssetCollection(PHAssetCollection assetCollection, PHFetchOptions options)
-
fetchAssetsWithBurstIdentifier
public static PHFetchResult<PHAsset> fetchAssetsWithBurstIdentifier(java.lang.String burstIdentifier, PHFetchOptions options)
-
fetchAssets
public static PHFetchResult<PHAsset> fetchAssets(PHFetchOptions options)
-
fetchAssetsWithMediaType
public static PHFetchResult<PHAsset> fetchAssetsWithMediaType(PHAssetMediaType mediaType, PHFetchOptions options)
-
fetchAssetsWithALAssetURLs
@Deprecated public static PHFetchResult<PHAsset> fetchAssetsWithALAssetURLs(NSArray<NSURL> assetURLs, PHFetchOptions options)
Deprecated.Deprecated in iOS 11.0. Will be removed in a future release- Since:
- Available in iOS 8.0 and later.
-
requestContentEditingInput
public long requestContentEditingInput(PHContentEditingInputRequestOptions options, org.robovm.objc.block.VoidBlock2<PHContentEditingInput,NSDictionary<?,?>> completionHandler)
- Since:
- Available in iOS 8.0 and later.
-
cancelContentEditingInputRequest
public void cancelContentEditingInputRequest(long requestID)
- Since:
- Available in iOS 8.0 and later.
-
-