Class WKInterfaceButton

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class WKInterfaceButton
extends WKInterfaceObject
Since:
Available in iOS 8.2 and later.
  • Constructor Details

    • WKInterfaceButton

      protected WKInterfaceButton()
    • WKInterfaceButton

      protected WKInterfaceButton​(NSObject.Handle h, long handle)
    • WKInterfaceButton

      protected WKInterfaceButton​(NSObject.SkipInit skipInit)
  • Method Details

    • setTitle

      public void setTitle​(String title)
    • setAttributedTitle

      public void setAttributedTitle​(NSAttributedString attributedTitle)
    • setBackgroundColor

      public void setBackgroundColor​(UIColor color)
    • setBackgroundImage

      public void setBackgroundImage​(UIImage image)
    • setBackgroundImageData

      public void setBackgroundImageData​(NSData imageData)
    • setBackgroundImageNamed

      public void setBackgroundImageNamed​(String imageName)
    • setEnabled

      public void setEnabled​(boolean enabled)