Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.bugvm.apple.foundation.NSFileCoordinator Maven / Gradle / Ivy
/*
* 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.foundation;
/**/
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.corefoundation.*;
import com.bugvm.apple.uikit.*;
import com.bugvm.apple.coretext.*;
import com.bugvm.apple.coreanimation.*;
import com.bugvm.apple.coredata.*;
import com.bugvm.apple.coregraphics.*;
import com.bugvm.apple.coremedia.*;
import com.bugvm.apple.security.*;
import com.bugvm.apple.dispatch.*;
/* */
/**/
/**
* @since Available in iOS 5.0 and later.
*/
/* */
/**/@Library("Foundation") @NativeClass/* */
/**/public/* */ class /**/NSFileCoordinator/* */
extends /**/NSObject/* */
/**//* */ {
/**/public static class NSFileCoordinatorPtr extends Ptr {}/* */
/**/static { ObjCRuntime.bind(NSFileCoordinator.class); }/* */
/**//* */
/**/
public NSFileCoordinator() {}
protected NSFileCoordinator(SkipInit skipInit) { super(skipInit); }
public NSFileCoordinator(NSFilePresenter filePresenterOrNil) { super((SkipInit) null); initObject(init(filePresenterOrNil)); }
/* */
/**/
/**
* @since Available in iOS 5.0 and later.
*/
@Property(selector = "purposeIdentifier")
public native String getPurposeIdentifier();
/**
* @since Available in iOS 5.0 and later.
*/
@Property(selector = "setPurposeIdentifier:")
public native void setPurposeIdentifier(String v);
/* */
/**//* */
/**
*
* @param url
* @param options
* @param reader
* @throws NSErrorException
*/
public void coordinateReadingItem(NSURL url, NSFileCoordinatorReadingOptions options, @Block VoidBlock1 reader) throws NSErrorException {
NSError.NSErrorPtr err = new NSError.NSErrorPtr();
coordinateReadingItem(url, options, err, reader);
if (err.get() != null) {
throw new NSErrorException(err.get());
}
}
/**
*
* @param url
* @param options
* @param writer
* @throws NSErrorException
*/
public void coordinateWritingItem(NSURL url, NSFileCoordinatorWritingOptions options, @Block VoidBlock1 writer) throws NSErrorException {
NSError.NSErrorPtr err = new NSError.NSErrorPtr();
coordinateWritingItem(url, options, err, writer);
if (err.get() != null) {
throw new NSErrorException(err.get());
}
}
/**
*
* @param readingURL
* @param readingOptions
* @param writingURL
* @param writingOptions
* @param readerWriter
* @throws NSErrorException
*/
public void coordinateReadingItem(NSURL readingURL, NSFileCoordinatorReadingOptions readingOptions, NSURL writingURL, NSFileCoordinatorWritingOptions writingOptions, @Block VoidBlock2 readerWriter) throws NSErrorException {
NSError.NSErrorPtr err = new NSError.NSErrorPtr();
coordinateReadingItem(readingURL, readingOptions, writingURL, writingOptions, err, readerWriter);
if (err.get() != null) {
throw new NSErrorException(err.get());
}
}
/**
*
* @param url1
* @param options1
* @param url2
* @param options2
* @param writer
* @throws NSErrorException
*/
public void coordinateWritingItem(NSURL url1, NSFileCoordinatorWritingOptions options1, NSURL url2, NSFileCoordinatorWritingOptions options2, @Block VoidBlock2 writer) throws NSErrorException {
NSError.NSErrorPtr err = new NSError.NSErrorPtr();
coordinateWritingItem(url1, options1, url2, options2, err, writer);
if (err.get() != null) {
throw new NSErrorException(err.get());
}
}
/**
*
* @param readingURLs
* @param readingOptions
* @param writingURLs
* @param writingOptions
* @param batchAccessor
* @throws NSErrorException
*/
public void prepareForReadingItems(NSArray readingURLs, NSFileCoordinatorReadingOptions readingOptions, NSArray writingURLs, NSFileCoordinatorWritingOptions writingOptions, @Block("(@Block)") VoidBlock1 batchAccessor) throws NSErrorException {
NSError.NSErrorPtr err = new NSError.NSErrorPtr();
prepareForReadingItems(readingURLs, readingOptions, writingURLs, writingOptions, err, batchAccessor);
if (err.get() != null) {
throw new NSErrorException(err.get());
}
}
/**/
@Method(selector = "initWithFilePresenter:")
protected native @Pointer long init(NSFilePresenter filePresenterOrNil);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "coordinateAccessWithIntents:queue:byAccessor:")
public native void coordinateAccessWithIntents(NSArray intents, NSOperationQueue queue, @Block VoidBlock1 accessor);
@Method(selector = "coordinateReadingItemAtURL:options:error:byAccessor:")
protected native void coordinateReadingItem(NSURL url, NSFileCoordinatorReadingOptions options, NSError.NSErrorPtr outError, @Block VoidBlock1 reader);
@Method(selector = "coordinateWritingItemAtURL:options:error:byAccessor:")
protected native void coordinateWritingItem(NSURL url, NSFileCoordinatorWritingOptions options, NSError.NSErrorPtr outError, @Block VoidBlock1 writer);
@Method(selector = "coordinateReadingItemAtURL:options:writingItemAtURL:options:error:byAccessor:")
protected native void coordinateReadingItem(NSURL readingURL, NSFileCoordinatorReadingOptions readingOptions, NSURL writingURL, NSFileCoordinatorWritingOptions writingOptions, NSError.NSErrorPtr outError, @Block VoidBlock2 readerWriter);
@Method(selector = "coordinateWritingItemAtURL:options:writingItemAtURL:options:error:byAccessor:")
protected native void coordinateWritingItem(NSURL url1, NSFileCoordinatorWritingOptions options1, NSURL url2, NSFileCoordinatorWritingOptions options2, NSError.NSErrorPtr outError, @Block VoidBlock2 writer);
@Method(selector = "prepareForReadingItemsAtURLs:options:writingItemsAtURLs:options:error:byAccessor:")
protected native void prepareForReadingItems(NSArray readingURLs, NSFileCoordinatorReadingOptions readingOptions, NSArray writingURLs, NSFileCoordinatorWritingOptions writingOptions, NSError.NSErrorPtr outError, @Block("(@Block)") VoidBlock1 batchAccessor);
/**
* @since Available in iOS 6.0 and later.
*/
@Method(selector = "itemAtURL:willMoveToURL:")
public native void itemAtURLWillMoveToURL(NSURL oldURL, NSURL newURL);
@Method(selector = "itemAtURL:didMoveToURL:")
public native void itemAtURLDidMoveToURL(NSURL oldURL, NSURL newURL);
@Method(selector = "cancel")
public native void cancel();
@Method(selector = "addFilePresenter:")
public static native void addFilePresenter(NSFilePresenter filePresenter);
@Method(selector = "removeFilePresenter:")
public static native void removeFilePresenter(NSFilePresenter filePresenter);
@Method(selector = "filePresenters")
public static native @com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsListMarshaler.class) List getFilePresenters();
/* */
}