com.bugvm.apple.avfoundation.AVAssetDownloadURLSession Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.bugvm.apple.avfoundation;
/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.foundation.*;
import com.bugvm.apple.corefoundation.*;
import com.bugvm.apple.dispatch.*;
import com.bugvm.apple.coreanimation.*;
import com.bugvm.apple.coreimage.*;
import com.bugvm.apple.coregraphics.*;
import com.bugvm.apple.coreaudio.*;
import com.bugvm.apple.coremedia.*;
import com.bugvm.apple.corevideo.*;
import com.bugvm.apple.mediatoolbox.*;
import com.bugvm.apple.audiotoolbox.*;
import com.bugvm.apple.audiounit.*;
/* */
/**/
/**
* @since Available in iOS 9.0 and later.
*/
/* */
/**/@Library("AVFoundation") @NativeClass/* */
/**/public/* */ class /**/AVAssetDownloadURLSession/* */
extends /**/NSURLSession/* */
/**//* */ {
/**/public static class AVAssetDownloadURLSessionPtr extends Ptr {}/* */
/**/static { ObjCRuntime.bind(AVAssetDownloadURLSession.class); }/* */
/**//* */
/**/
public AVAssetDownloadURLSession() {}
protected AVAssetDownloadURLSession(SkipInit skipInit) { super(skipInit); }
public AVAssetDownloadURLSession(NSURLSessionConfiguration configuration, AVAssetDownloadDelegate delegate, NSOperationQueue delegateQueue) { super(create(configuration, delegate, delegateQueue)); retain(getHandle()); }
public AVAssetDownloadURLSession(NSURLSessionConfiguration configuration) { super(create(configuration)); retain(getHandle()); }
public AVAssetDownloadURLSession(NSURLSessionConfiguration configuration, NSURLSessionDelegate delegate, NSOperationQueue queue) { super(create(configuration, delegate, queue)); retain(getHandle()); }
/* */
/**/
/* */
/**//* */
/**/
@Method(selector = "assetDownloadTaskWithURLAsset:destinationURL:options:")
public native AVAssetDownloadTask newAssetDownloadTask(AVURLAsset URLAsset, NSURL destinationURL, AVAssetDownloadTaskOptions options);
@Method(selector = "dataTaskWithRequest:")
public native NSURLSessionDataTask newDataTask(NSURLRequest request);
@Method(selector = "dataTaskWithURL:")
public native NSURLSessionDataTask newDataTask(NSURL url);
@Method(selector = "uploadTaskWithRequest:fromFile:")
public native NSURLSessionUploadTask newUploadTask(NSURLRequest request, NSURL fileURL);
@Method(selector = "uploadTaskWithRequest:fromData:")
public native NSURLSessionUploadTask newUploadTask(NSURLRequest request, NSData bodyData);
@Method(selector = "uploadTaskWithStreamedRequest:")
public native NSURLSessionUploadTask newUploadTask(NSURLRequest request);
@Method(selector = "downloadTaskWithRequest:")
public native NSURLSessionDownloadTask newDownloadTask(NSURLRequest request);
@Method(selector = "downloadTaskWithURL:")
public native NSURLSessionDownloadTask newDownloadTask(NSURL url);
@Method(selector = "downloadTaskWithResumeData:")
public native NSURLSessionDownloadTask newDownloadTask(NSData resumeData);
@Method(selector = "dataTaskWithRequest:completionHandler:")
public native NSURLSessionDataTask newDataTask(NSURLRequest request, @Block VoidBlock3 completionHandler);
@Method(selector = "dataTaskWithURL:completionHandler:")
public native NSURLSessionDataTask newDataTask(NSURL url, @Block VoidBlock3 completionHandler);
@Method(selector = "uploadTaskWithRequest:fromFile:completionHandler:")
public native NSURLSessionUploadTask newUploadTask(NSURLRequest request, NSURL fileURL, @Block VoidBlock3 completionHandler);
@Method(selector = "uploadTaskWithRequest:fromData:completionHandler:")
public native NSURLSessionUploadTask newUploadTask(NSURLRequest request, NSData bodyData, @Block VoidBlock3 completionHandler);
@Method(selector = "downloadTaskWithRequest:completionHandler:")
public native NSURLSessionDownloadTask newDownloadTask(NSURLRequest request, @Block VoidBlock3 completionHandler);
@Method(selector = "downloadTaskWithURL:completionHandler:")
public native NSURLSessionDownloadTask newDownloadTask(NSURL url, @Block VoidBlock3 completionHandler);
@Method(selector = "downloadTaskWithResumeData:completionHandler:")
public native NSURLSessionDownloadTask newDownloadTask(NSData resumeData, @Block VoidBlock3 completionHandler);
@Method(selector = "sessionWithConfiguration:assetDownloadDelegate:delegateQueue:")
protected static native @Pointer long create(NSURLSessionConfiguration configuration, AVAssetDownloadDelegate delegate, NSOperationQueue delegateQueue);
@Method(selector = "sharedSession")
public static native NSURLSession getSharedSession();
@Method(selector = "sessionWithConfiguration:")
protected static native @Pointer long create(NSURLSessionConfiguration configuration);
@Method(selector = "sessionWithConfiguration:delegate:delegateQueue:")
protected static native @Pointer long create(NSURLSessionConfiguration configuration, NSURLSessionDelegate delegate, NSOperationQueue queue);
/* */
}