Esempio n. 1
0
 /*<methods>*/
 public boolean canEvaluatePolicy(LAPolicy policy) throws NSErrorException {
   NSError.NSErrorPtr ptr = new NSError.NSErrorPtr();
   boolean result = canEvaluatePolicy(policy, ptr);
   if (ptr.get() != null) {
     throw new NSErrorException(ptr.get());
   }
   return result;
 }
 public boolean performFetch() throws NSErrorException {
   NSError.NSErrorPtr ptr = new NSError.NSErrorPtr();
   boolean result = performFetch(ptr);
   if (ptr.get() != null) {
     throw new NSErrorException(ptr.get());
   }
   return result;
 }
Esempio n. 3
0
 /** @since Available in iOS 4.0 and later. */
 public CFURLEnumeratorResult getNextURL(CFURL.CFURLPtr url) throws NSErrorException {
   NSError.NSErrorPtr ptr = new NSError.NSErrorPtr();
   CFURLEnumeratorResult result = getNextURL(url, ptr);
   if (ptr.get() != null) {
     throw new NSErrorException(ptr.get());
   }
   return result;
 }
 public boolean validate() throws NSErrorException {
   NSError.NSErrorPtr ptr = new NSError.NSErrorPtr();
   boolean result = validate(ptr);
   if (ptr.get() != null) {
     throw new NSErrorException(ptr.get());
   }
   return result;
 }
Esempio n. 5
0
 /**
  * @param offset
  * @param length
  * @return
  * @throws NSErrorException
  */
 public byte[] getBytes(int offset, int length) throws NSErrorException {
   byte[] bytes = new byte[length];
   NSError.NSErrorPtr err = new NSError.NSErrorPtr();
   getBytes(VM.getArrayValuesAddress(bytes), offset, length, err);
   if (err.get() != null) {
     throw new NSErrorException(err.get());
   }
   return bytes;
 }
 /** @since Available in iOS 7.0 and later. */
 public boolean setPreferredDataSource(AVAudioSessionDataSourceDescription dataSource)
     throws NSErrorException {
   NSError.NSErrorPtr ptr = new NSError.NSErrorPtr();
   boolean result = setPreferredDataSource(dataSource, ptr);
   if (ptr.get() != null) {
     throw new NSErrorException(ptr.get());
   }
   return result;
 }
 public boolean validateTrackSegments(NSArray<AVCompositionTrackSegment> trackSegments)
     throws NSErrorException {
   NSError.NSErrorPtr ptr = new NSError.NSErrorPtr();
   boolean result = validateTrackSegments(trackSegments, ptr);
   if (ptr.get() != null) {
     throw new NSErrorException(ptr.get());
   }
   return result;
 }
Esempio n. 8
0
 /** @since Available in iOS 9.0 and later. */
 public NSData getPersistentContentKey(
     NSData keyVendorResponse, AVAssetResourceLoadingRequestOptions options)
     throws NSErrorException {
   NSError.NSErrorPtr ptr = new NSError.NSErrorPtr();
   NSData result = getPersistentContentKey(keyVendorResponse, options, ptr);
   if (ptr.get() != null) {
     throw new NSErrorException(ptr.get());
   }
   return result;
 }
 /*<methods>*/
 public boolean insertTimeRange(
     @ByVal CMTimeRange timeRange, AVAssetTrack track, @ByVal CMTime startTime)
     throws NSErrorException {
   NSError.NSErrorPtr ptr = new NSError.NSErrorPtr();
   boolean result = insertTimeRange(timeRange, track, startTime, ptr);
   if (ptr.get() != null) {
     throw new NSErrorException(ptr.get());
   }
   return result;
 }
Esempio n. 10
0
 public NSData getStreamingContentKeyRequestData(
     NSData appIdentifier, NSData contentIdentifier, AVAssetResourceLoadingRequestOptions options)
     throws NSErrorException {
   NSError.NSErrorPtr ptr = new NSError.NSErrorPtr();
   NSData result =
       getStreamingContentKeyRequestData(appIdentifier, contentIdentifier, options, ptr);
   if (ptr.get() != null) {
     throw new NSErrorException(ptr.get());
   }
   return result;
 }
 /** @since Available in iOS 5.0 and later. */
 public boolean insertTimeRanges(
     @org.robovm.rt.bro.annotation.Marshaler(CMTimeRange.AsValuedListMarshaler.class)
         List<CMTimeRange> timeRanges,
     NSArray<AVAssetTrack> tracks,
     @ByVal CMTime startTime)
     throws NSErrorException {
   NSError.NSErrorPtr ptr = new NSError.NSErrorPtr();
   boolean result = insertTimeRanges(timeRanges, tracks, startTime, ptr);
   if (ptr.get() != null) {
     throw new NSErrorException(ptr.get());
   }
   return result;
 }