Gck.Object.prototype.set_template_async

function set_template_async(attr_type: Number(gulong), attrs: Gck.Attributes, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for gck_object_set_template_async()
}
  

Set an attribute template on the object. The attr_type must be for an attribute which contains a template.

If the attrs Gck.Attributes is floating, it is consumed.

This call will return immediately and complete asynchronously.

attr_type

The attribute template type.

attrs

The attribute template.

cancellable

Optional cancellation object, or NULL.

callback

Called when the operation completes.