com.bugvm.apple.cloudkit.CKDatabase 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.cloudkit;
/**/
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.corelocation.*;
import com.bugvm.apple.contacts.*;
/* */
/**/
/**
* @since Available in iOS 8.0 and later.
*/
/* */
/**/@Library("CloudKit") @NativeClass/* */
/**/public/* */ class /**/CKDatabase/* */
extends /**/NSObject/* */
/**//* */ {
/**/public static class CKDatabasePtr extends Ptr {}/* */
/**/static { ObjCRuntime.bind(CKDatabase.class); }/* */
/**//* */
/**/
public CKDatabase() {}
protected CKDatabase(SkipInit skipInit) { super(skipInit); }
/* */
/**/
/* */
/**//* */
/**/
@Method(selector = "addOperation:")
public native void addOperation(CKDatabaseOperation operation);
@Method(selector = "fetchRecordWithID:completionHandler:")
public native void fetchRecord(CKRecordID recordID, @Block VoidBlock2 completionHandler);
@Method(selector = "saveRecord:completionHandler:")
public native void saveRecord(CKRecord record, @Block VoidBlock2 completionHandler);
@Method(selector = "deleteRecordWithID:completionHandler:")
public native void deleteRecord(CKRecordID recordID, @Block VoidBlock2 completionHandler);
@Method(selector = "performQuery:inZoneWithID:completionHandler:")
public native void performQuery(CKQuery query, CKRecordZoneID zoneID, @Block VoidBlock2, NSError> completionHandler);
@Method(selector = "fetchAllRecordZonesWithCompletionHandler:")
public native void fetchAllRecordZones(@Block VoidBlock2, NSError> completionHandler);
@Method(selector = "fetchRecordZoneWithID:completionHandler:")
public native void fetchRecordZone(CKRecordZoneID zoneID, @Block VoidBlock2 completionHandler);
@Method(selector = "saveRecordZone:completionHandler:")
public native void saveRecordZone(CKRecordZone zone, @Block VoidBlock2 completionHandler);
@Method(selector = "deleteRecordZoneWithID:completionHandler:")
public native void deleteRecordZone(CKRecordZoneID zoneID, @Block VoidBlock2 completionHandler);
@Method(selector = "fetchSubscriptionWithID:completionHandler:")
public native void fetchSubscription(String subscriptionID, @Block VoidBlock2 completionHandler);
@Method(selector = "fetchAllSubscriptionsWithCompletionHandler:")
public native void fetchAllSubscriptions(@Block VoidBlock2, NSError> completionHandler);
@Method(selector = "saveSubscription:completionHandler:")
public native void saveSubscription(CKSubscription subscription, @Block VoidBlock2 completionHandler);
@Method(selector = "deleteSubscriptionWithID:completionHandler:")
public native void deleteSubscription(String subscriptionID, @Block VoidBlock2 completionHandler);
/* */
}