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

com.bugvm.apple.watchkit.WKInterfaceController 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.watchkit;

/**/
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.*;
import com.bugvm.apple.coregraphics.*;
import com.bugvm.apple.mapkit.*;
import com.bugvm.apple.corelocation.*;
/**/

/**/
/**
 * @since Available in iOS 8.2 and later.
 */
/**/
/**/@Library("WatchKit") @NativeClass/**/
/**/public/**/ class /**/WKInterfaceController/**/ 
    extends /**/NSObject/**/ 
    /**//**/ {

    /**/public static class WKInterfaceControllerPtr extends Ptr {}/**/
    /**/static { ObjCRuntime.bind(WKInterfaceController.class); }/**/
    /**//**/
    /**/
    public WKInterfaceController() {}
    protected WKInterfaceController(SkipInit skipInit) { super(skipInit); }
    /**/
    /**/
    @Property(selector = "contentFrame")
    public native @ByVal CGRect getContentFrame();
    /**/
    /**//**/
    /**/
    @Method(selector = "awakeWithContext:")
    public native void awake(NSObject context);
    @Method(selector = "willActivate")
    public native void willActivate();
    @Method(selector = "didDeactivate")
    public native void didDeactivate();
    @Method(selector = "table:didSelectRowAtIndex:")
    public native void didSelectRow(WKInterfaceTable table, @MachineSizedSInt long rowIndex);
    @Method(selector = "handleActionWithIdentifier:forRemoteNotification:")
    public native void handleAction(String identifier, UIRemoteNotification remoteNotification);
    @Method(selector = "handleActionWithIdentifier:forLocalNotification:")
    public native void handleAction(String identifier, UILocalNotification localNotification);
    @Method(selector = "handleUserActivity:")
    public native void handleUserActivity(NSDictionary userInfo);
    @Method(selector = "setTitle:")
    public native void setTitle(String title);
    @Method(selector = "pushControllerWithName:context:")
    public native void pushController(String name, NSObject context);
    @Method(selector = "popController")
    public native void popController();
    @Method(selector = "popToRootController")
    public native void popToRootController();
    @Method(selector = "becomeCurrentPage")
    public native void becomeCurrentPage();
    @Method(selector = "presentControllerWithName:context:")
    public native void presentController(String name, NSObject context);
    @Method(selector = "presentControllerWithNames:contexts:")
    public native void presentController(@com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List names, NSArray contexts);
    @Method(selector = "dismissController")
    public native void dismissController();
    @Method(selector = "presentTextInputControllerWithSuggestions:allowedInputMode:completion:")
    public native void presentTextInputController(@com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List suggestions, WKTextInputMode inputMode, @Block VoidBlock1> completion);
    @Method(selector = "dismissTextInputController")
    public native void dismissTextInputController();
    @Method(selector = "contextForSegueWithIdentifier:")
    public native NSObject getContextForSegue(String segueIdentifier);
    @Method(selector = "contextsForSegueWithIdentifier:")
    public native NSArray getContextsForSegue(String segueIdentifier);
    @Method(selector = "contextForSegueWithIdentifier:inTable:rowIndex:")
    public native NSObject getContextForSegue(String segueIdentifier, WKInterfaceTable table, @MachineSizedSInt long rowIndex);
    @Method(selector = "contextsForSegueWithIdentifier:inTable:rowIndex:")
    public native NSArray getContextsForSegue(String segueIdentifier, WKInterfaceTable table, @MachineSizedSInt long rowIndex);
    @Method(selector = "addMenuItemWithImage:title:action:")
    public native void addMenuItem(UIImage image, String title, Selector action);
    @Method(selector = "addMenuItemWithImageNamed:title:action:")
    public native void addMenuItem(String imageName, String title, Selector action);
    @Method(selector = "addMenuItemWithItemIcon:title:action:")
    public native void addMenuItem(WKMenuItemIcon itemIcon, String title, Selector action);
    @Method(selector = "clearAllMenuItems")
    public native void clearAllMenuItems();
    @Method(selector = "updateUserActivity:userInfo:webpageURL:")
    public native void updateUserActivity(String type, NSDictionary userInfo, NSURL webpageURL);
    @Method(selector = "invalidateUserActivity")
    public native void invalidateUserActivity();
    @Method(selector = "reloadRootControllersWithNames:contexts:")
    public static native void reloadRootControllers(@com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsStringListMarshaler.class) List names, NSArray contexts);
    @Method(selector = "openParentApplication:reply:")
    public static native boolean openParentApplication(NSDictionary userInfo, @Block VoidBlock2, NSError> reply);
    /**/
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy