Platforms to show: All Mac Windows Linux Cross-Platform

ASAuthorizationAppleIDButtonMBS class

Super class: NSControlMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class AuthenticationServices MBS MacFrameworks Plugin 25.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A control you add to your interface that enables users to initiate the Sign In with Apple flow.

Choose one of the built-in button styles and types, and change the corner radius of the button by setting the cornerRadius property, but don’t otherwise modify the style of the button. Don’t use an Apple ID authorization button for any purpose other than to initiate the Sign In with Apple flow.

After the user taps the button, create a request using the provider, and then use an instance of ASAuthorizationControllerMBS to execute the request.
Subclass of the NSControlMBS class.

  • property cornerRadius as double
  • method Constructor(Type as Integer, Style as Integer)
  • shared method button(Type as Integer, Style as Integer) as ASAuthorizationAppleIDButtonMBS
  • 7 constants

Button Styles

Constant Value Description
StyleBlack 2 A black button.
StyleWhite 0 A white button.
StyleWhiteOutline 1 A button with a white outline.

Button Types

Constant Value Description
TypeContinue 1 A button type that continues the Sign in with Apple authorization process.
TypeDefault 2 A default button type for the Sign in with Apple authorization process.
TypeSignIn 0 A button type that performs authorization using Sign in with Apple.
TypeSignUp 2 A button type that allows the user to sign up for Sign in with Apple.

Super class NSControlMBS

Control Sizes

Constant Value Description
ControlSizeExtraLarge 4 A extra size larger than the default control size. more
ControlSizeLarge 3 A size larger than the default control size.
ControlSizeMini 2 The smallest control size.
ControlSizeRegular 0 The default control size.
ControlSizeSmall 1 A size smaller than the default control size. more

Super class NSViewMBS

Constants

Constant Value Description
NSBezelBorder 2 One of the constants to specify the type of a view's border. A concave border that makes the view look sunken.
NSFocusRingTypeDefault 0 One of the constants for the focusringtype property. The default focus ring type for NSView or NSCell.
NSFocusRingTypeExterior 2 One of the constants for the focusringtype property. The standard Aqua focus ring.
NSFocusRingTypeNone 1 One of the constants for the focusringtype property. No focus ring. If you set the focus ring type to this value, NSView and NSCell will not draw any focus ring.
NSGrooveBorder 3 One of the constants to specify the type of a view's border. A thin border that looks etched around the image.
NSLineBorder 1 One of the constants to specify the type of a view's border. A black line border around the view.
NSNoBorder 0 One of the constants to specify the type of a view's border. No border.
NSViewHeightSizable 16 One of the constants for the autoresizingMask property. The receiver's height is flexible.
NSViewLayerContentsRedrawBeforeViewResize 3 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawDuringViewResize 2 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawNever 0 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawOnSetNeedsDisplay 1 One of the view layer content redraw policy constants.
NSViewMaxXMargin 4 One of the constants for the autoresizingMask property. The right margin between the receiver and its superview is flexible.
NSViewMaxYMargin 32 One of the constants for the autoresizingMask property. The top margin between the receiver and its superview is flexible.
NSViewMinXMargin 1 One of the constants for the autoresizingMask property. The left margin between the receiver and its superview is flexible.
NSViewMinYMargin 8 One of the constants for the autoresizingMask property. The bottom margin between the receiver and its superview is flexible.
NSViewNotSizable 0 One of the constants for the autoresizingMask property. The receiver cannot be resized.
NSViewWidthSizable 2 One of the constants for the autoresizingMask property. The receiver's width is flexible.

Window Order Constants

Constant Value Description
NSWindowAbove 1 Moves the window above the indicated window.
NSWindowBelow -1 Moves the window below the indicated window.
NSWindowOut 0 Moves the window off the screen.

Super class NSResponderMBS

This class has no sub classes.

Blog Entries

Release notes

Some properties using for this class:

Some related classes:


The items on this page are in the following plugins: MBS MacBase Plugin, MBS MacCocoa Plugin, MBS MacFrameworks Plugin.


Argon2MBS   -   ASAuthorizationAppleIDCredentialMBS


The biggest plugin in space...