/lib/titanium/mobile/facebook/FacebookLoginButton.hx

http://github.com/visup/haxe-titanium-api · Haxe · 55 lines · 10 code · 4 blank · 41 comment · 0 complexity · d4c37bbbdac0827e4f8b03d253e87bdb MD5 · raw file

  1. package titanium.mobile.facebook;
  2. import titanium.mobile.core.BaseView;
  3. import titanium.mobile.core.Dispatcher;
  4. /**
  5. Facebook.LoginButton class
  6. Documentation available at:
  7. http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Facebook.LoginButton-object.html
  8. - namespace
  9. Titanium.Facebook.LoginButton
  10. - type
  11. object
  12. - subtype
  13. view
  14. - description
  15. The Login Button created by `Titanium.Facebook.createLoginButton`. This is a Facebook-themed button that does not require a click event handler or any listeners. It "just works" and changes its label to reflect the current state of the Facebook session. For example, if the user is already logged in, this button will show "Logout".
  16. - since
  17. 0.8
  18. - platforms
  19. android, iphone, ipad
  20. - properties
  21. style[string]: set to "wide" to show a wider version of the button that displays "Connect with Facebook" instead of just "Connect".
  22. - notes
  23. See the examples in the `Titanium.Facebook` documentation.
  24. **/
  25. @:native("Titanium.Facebook.LoginButton")
  26. extern class FacebookLoginButton extends BaseView
  27. {
  28. // static constructor
  29. public inline static function create(?parameters:Dynamic):FacebookLoginButton
  30. return titanium.mobile.Facebook.createLoginButton(parameters)
  31. // static properties
  32. public static var Style:String;
  33. }