All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bugvm.apple.gamekit.GKTurnBasedMatch 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.gamekit;

/**/
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.uikit.*;
/**/

/**/
/**
 * @since Available in iOS 5.0 and later.
 */
/**/
/**/@Library("GameKit") @NativeClass/**/
/**/public/**/ class /**/GKTurnBasedMatch/**/ 
    extends /**/NSObject/**/ 
    /**//**/ {

    /**/public static class GKTurnBasedMatchPtr extends Ptr {}/**/
    /**/static { ObjCRuntime.bind(GKTurnBasedMatch.class); }/**/
    /**//**/
    /**/
    public GKTurnBasedMatch() {}
    protected GKTurnBasedMatch(SkipInit skipInit) { super(skipInit); }
    /**/
    /**/
    @Property(selector = "matchID")
    public native String getMatchID();
    @Property(selector = "creationDate")
    public native NSDate getCreationDate();
    @Property(selector = "participants")
    public native NSArray getParticipants();
    @Property(selector = "status")
    public native GKTurnBasedMatchStatus getStatus();
    @Property(selector = "currentParticipant")
    public native GKTurnBasedParticipant getCurrentParticipant();
    @Property(selector = "matchData")
    public native NSData getMatchData();
    @Property(selector = "message")
    public native String getMessage();
    @Property(selector = "setMessage:")
    public native void setMessage(String v);
    /**
     * @since Available in iOS 6.0 and later.
     */
    @Property(selector = "matchDataMaximumSize")
    public native @MachineSizedUInt long getMatchDataMaximumSize();
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "exchanges")
    public native NSArray getExchanges();
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "activeExchanges")
    public native NSArray getActiveExchanges();
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "completedExchanges")
    public native NSArray getCompletedExchanges();
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "exchangeDataMaximumSize")
    public native @MachineSizedUInt long getExchangeDataMaximumSize();
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "exchangeMaxInitiatedExchangesPerPlayer")
    public native @MachineSizedUInt long getExchangeMaxInitiatedExchangesPerPlayer();
    /**/
    /**//**/
    /**/
    /**
     * @since Available in iOS 6.0 and later.
     */
    @GlobalValue(symbol="GKTurnTimeoutDefault", optional=true)
    public static native double getDefaultTimeout();
    /**
     * @since Available in iOS 6.0 and later.
     */
    @GlobalValue(symbol="GKTurnTimeoutNone", optional=true)
    public static native double getNoneTimeout();
    
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "setLocalizableMessageWithKey:arguments:")
    public native void setLocalizableMessage(String key, @com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List arguments);
    /**
     * @since Available in iOS 6.0 and later.
     */
    @Method(selector = "rematchWithCompletionHandler:")
    public native void rematch(@Block VoidBlock2 completionHandler);
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Method(selector = "acceptInviteWithCompletionHandler:")
    public native void acceptInvite(@Block VoidBlock2 completionHandler);
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Method(selector = "declineInviteWithCompletionHandler:")
    public native void declineInvite(@Block VoidBlock1 completionHandler);
    @Method(selector = "removeWithCompletionHandler:")
    public native void remove(@Block VoidBlock1 completionHandler);
    @Method(selector = "loadMatchDataWithCompletionHandler:")
    public native void loadMatchData(@Block VoidBlock2 completionHandler);
    /**
     * @since Available in iOS 6.0 and later.
     */
    @Method(selector = "endTurnWithNextParticipants:turnTimeout:matchData:completionHandler:")
    public native void endTurn(NSArray nextParticipants, double timeout, NSData matchData, @Block VoidBlock1 completionHandler);
    /**
     * @since Available in iOS 6.0 and later.
     */
    @Method(selector = "participantQuitInTurnWithOutcome:nextParticipants:turnTimeout:matchData:completionHandler:")
    public native void participantQuitInTurn(GKTurnBasedMatchOutcome matchOutcome, NSArray nextParticipants, double timeout, NSData matchData, @Block VoidBlock1 completionHandler);
    @Method(selector = "participantQuitOutOfTurnWithOutcome:withCompletionHandler:")
    public native void participantQuitOutOfTurn(GKTurnBasedMatchOutcome matchOutcome, @Block VoidBlock1 completionHandler);
    @Method(selector = "endMatchInTurnWithMatchData:completionHandler:")
    public native void endMatch(NSData matchData, @Block VoidBlock1 completionHandler);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "endMatchInTurnWithMatchData:scores:achievements:completionHandler:")
    public native void endMatch(NSData matchData, NSArray scores, NSArray achievements, @Block VoidBlock1 completionHandler);
    /**
     * @since Available in iOS 6.0 and later.
     */
    @Method(selector = "saveCurrentTurnWithMatchData:completionHandler:")
    public native void saveCurrentTurn(NSData matchData, @Block VoidBlock1 completionHandler);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "saveMergedMatchData:withResolvedExchanges:completionHandler:")
    public native void saveMergedMatchData(NSData matchData, NSArray exchanges, @Block VoidBlock1 completionHandler);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "sendExchangeToParticipants:data:localizableMessageKey:arguments:timeout:completionHandler:")
    public native void sendExchange(NSArray participants, NSData data, String key, @com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List arguments, double timeout, @Block VoidBlock2 completionHandler);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "sendReminderToParticipants:localizableMessageKey:arguments:completionHandler:")
    public native void sendReminder(NSArray participants, String key, @com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List arguments, @Block VoidBlock1 completionHandler);
    /**
     * @since Available in iOS 5.0 and later.
     * @deprecated Deprecated in iOS 6.0.
     */
    @Deprecated
    @Method(selector = "endTurnWithNextParticipant:matchData:completionHandler:")
    public native void endTurn(GKTurnBasedParticipant nextParticipant, NSData matchData, @Block VoidBlock1 completionHandler);
    /**
     * @since Available in iOS 5.0 and later.
     * @deprecated Deprecated in iOS 6.0.
     */
    @Deprecated
    @Method(selector = "participantQuitInTurnWithOutcome:nextParticipant:matchData:completionHandler:")
    public native void participantQuitInTurn(GKTurnBasedMatchOutcome matchOutcome, GKTurnBasedParticipant nextParticipant, NSData matchData, @Block VoidBlock1 completionHandler);
    @Method(selector = "findMatchForRequest:withCompletionHandler:")
    public static native void findMatch(GKMatchRequest request, @Block VoidBlock2 completionHandler);
    @Method(selector = "loadMatchesWithCompletionHandler:")
    public static native void loadMatches(@Block VoidBlock2, NSError> completionHandler);
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Method(selector = "loadMatchWithID:withCompletionHandler:")
    public static native void loadMatches(String matchID, @Block VoidBlock2 completionHandler);
    /**/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy