Interface nsIVariantType

XPConnect has magic to transparently convert between nsIVariant and JS types. We mark the interface [scriptable] so that JS can use methods that refer to this interface. But we mark all the methods and attributes [noscript] since any nsIVariant object will be automatically converted to a JS type anyway.

Hierarchy

Properties

dataType: uint16_t

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Returns string

  • Returns string

  • Returns string

  • Parameters

    • type: uint16_t
    • iid: nsIID
    • count: uint32_t
    • ptr: voidPtr

    Returns number

  • Returns boolean

  • Returns number

  • Returns number

  • Returns number

  • Parameters

    • retval: nsID

    Returns number

  • Returns nsISupports

  • Returns int16_t

  • Returns int32_t

  • Returns int64_t

  • Returns uint8_t

  • Parameters

    • iid: object
    • iface: object

    Returns void

  • Returns any

  • Returns string

  • Parameters

    • size: uint32_t
    • str: string

    Returns void

  • Returns uint16_t

  • Returns uint32_t

  • Returns uint64_t

  • Returns uint8_t

  • Returns string

  • Returns wstring

  • Parameters

    • size: uint32_t
    • str: wstring

    Returns void

Generated using TypeDoc