Gjsify LogoGjsify Logo

Hierarchy

  • PresenceMixinStatusAvailableFunc

Callable

  • PresenceMixinStatusAvailableFunc(obj: GObject.Object, which: number): boolean
  • Signature of a callback to be used to determine if a given presence status can be set on the connection. Most users of this mixin do not need to supply an implementation of this callback: the value of #TpPresenceStatusSpec.self is enough to determine whether this is a user-settable presence, so %NULL should be passed to tp_presence_mixin_class_init() for this callback.

    One place where this callback may be needed is on XMPP: not all server implementation support the user becoming invisible. So an XMPP implementation would implement this function, so that—once connected—the hidden status is only available if the server supports it. Before the connection is connected, this callback should return %TRUE for every status that might possibly be supported: this allows the user to at least try to sign in as invisible.

    Parameters

    • obj: GObject.Object

      An instance of a #TpBaseConnection subclass implementing the presence interface with this mixin

    • which: number

      An index into the array of #TpPresenceStatusSpec provided to tp_presence_mixin_class_init()

    Returns boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method