Skip to content

UI ​

Contribute verified NXML pages, components and finite UI behavior to Host-owned rendering. Plugins provide assets and typed intent; the Host owns controls, input, navigation and confirmation.

Contract: nexa.ui/100. API index.

Typical sequence ​

Open verified package assets before registration. Discover extension targets and their contracts before contributing or replacing a view. Keep action IDs and NXML bindings in the plugin namespace.

Behavior and limits ​

Stage registrations are not visible before atomic activation. Stop retires them. Model updates, drawing surfaces and input subscriptions retain their own schemas, budgets and ownership checks.

The recorded Host maps 19 of 19 operations in this group. A mapping is subject to permission, phase, scope, platform and business preconditions. Host snapshot identifies the source revision; negotiate against the actual installed Host.

Operations ​

RegisterPage · RegisterComponent · RegisterContribution · RegisterViewReplacement · RegisterNavigation · RegisterCommand · RegisterShortcut · ShowDialog · CloseDialog · Navigate · Notify · PublishModel · UpdateModel · WatchViewLifecycle · ListExtensionTargets · DescribeViewContract · CreateDrawingSurface · SubmitDrawCommands · SubscribeInput

RegisterPage ​

UIPage → RegistrationRef

PropertyContract
Local SDK method ID7
KindRegistration
Permissionnexa.ui.write
Legal phasesInitialize
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

The page asset must be opened from the verified package and owned by the current load. The descriptor links an NXML asset to its model schema and declared actions; it does not transfer rendering ownership.

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
EntryFileFileRefStructured FileRef value; follow its linked field contract.
SchemaSchemaRefExact schema identity, version and fingerprint used to validate Value.
LocalizationsQualifiedId[]Identity or revision in this model’s domain; preserve ownership and exact spelling. A bounded collection; do not assume an unbounded result or unspecified ordering.

Successful result

Retain the registration identity for the permitted update/release operation. Staged registrations become visible only at group activation.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_RegisterPage(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_RegisterPage_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

RegisterComponent ​

UIComponent → RegistrationRef

PropertyContract
Local SDK method ID8
KindRegistration
Permissionnexa.ui.write
Legal phasesInitialize
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
EntryFileFileRefStructured FileRef value; follow its linked field contract.
ParametersSchemaRefStructured SchemaRef value; follow its linked field contract.

Successful result

Retain the registration identity for the permitted update/release operation. Staged registrations become visible only at group activation.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_RegisterComponent(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_RegisterComponent_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

RegisterContribution ​

UIContribution → RegistrationRef

PropertyContract
Local SDK method ID9
KindRegistration
Permissionnexa.ui.write
Legal phasesInitialize
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
ViewQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
SemanticNodestringDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
ModeUIContributionModeUse an exact enum member listed in the reference. The Host can support a subset for a particular operation.
ComponentQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
BeforeQualifiedId[]Identity or revision in this model’s domain; preserve ownership and exact spelling. A bounded collection; do not assume an unbounded result or unspecified ordering.
AfterQualifiedId[]Identity or revision in this model’s domain; preserve ownership and exact spelling. A bounded collection; do not assume an unbounded result or unspecified ordering.

Successful result

Retain the registration identity for the permitted update/release operation. Staged registrations become visible only at group activation.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_RegisterContribution(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_RegisterContribution_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

RegisterViewReplacement ​

UIViewReplacement → RegistrationRef

PropertyContract
Local SDK method ID10
KindRegistration
Permissionnexa.ui.write
Legal phasesInitialize
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
ViewQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
ViewContractSchemaRefStructured SchemaRef value; follow its linked field contract.
PageQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.

Successful result

Retain the registration identity for the permitted update/release operation. Staged registrations become visible only at group activation.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_RegisterViewReplacement(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_RegisterViewReplacement_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

RegisterNavigation ​

UINavigation → RegistrationRef

PropertyContract
Local SDK method ID11
KindRegistration
Permissionnexa.ui.write
Legal phasesInitialize
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
PageQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
TitleLocalizedTextStructured LocalizedText value; follow its linked field contract.
IconQualifiedId?Identity or revision in this model’s domain; preserve ownership and exact spelling. Nullable; omission is distinct from an empty value. No implicit default is promised by this type.

Successful result

Retain the registration identity for the permitted update/release operation. Staged registrations become visible only at group activation.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_RegisterNavigation(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_RegisterNavigation_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

RegisterCommand ​

UICommand → RegistrationRef

PropertyContract
Local SDK method ID12
KindRegistration
Permissionnexa.ui.write
Legal phasesInitialize
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
ActionQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
TitleLocalizedTextStructured LocalizedText value; follow its linked field contract.

Successful result

Retain the registration identity for the permitted update/release operation. Staged registrations become visible only at group activation.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_RegisterCommand(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_RegisterCommand_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

RegisterShortcut ​

UIShortcut → RegistrationRef

PropertyContract
Local SDK method ID13
KindRegistration
Permissionnexa.ui.write
Legal phasesInitialize
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
CommandQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
GesturestringDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
ScopeQualifiedIdExplicit target scope. The Host checks that the caller is authorized for it.

Successful result

Retain the registration identity for the permitted update/release operation. Staged registrations become visible only at group activation.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_RegisterShortcut(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_RegisterShortcut_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

ShowDialog ​

UIDialog → UIDialogRef

PropertyContract
Local SDK method ID14
KindOperation
Permissionnexa.ui.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
PageQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
ModelAbiValueDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_ShowDialog(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_ShowDialog_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

CloseDialog ​

EntityRequest → Empty

PropertyContract
Local SDK method ID15
KindMutation
Permissionnexa.ui.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdEntityIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.

Successful result

There is no result payload beyond the encoded Empty model. Check Success; an empty failure value is not successful completion.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_CloseDialog(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_CloseDialog_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

UINavigateRequest → Empty

PropertyContract
Local SDK method ID16
KindMutation
Permissionnexa.ui.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
PageQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
ArgumentsAbiValueDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.

Successful result

There is no result payload beyond the encoded Empty model. Check Success; an empty failure value is not successful completion.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_Navigate(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_Navigate_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

Notify ​

UINotification → Empty

PropertyContract
Local SDK method ID17
KindMutation
Permissionnexa.ui.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
TitleLocalizedTextStructured LocalizedText value; follow its linked field contract.
BodyLocalizedTextStructured LocalizedText value; follow its linked field contract.
ActionQualifiedId?Identity or revision in this model’s domain; preserve ownership and exact spelling. Nullable; omission is distinct from an empty value. No implicit default is promised by this type.

Successful result

There is no result payload beyond the encoded Empty model. Check Success; an empty failure value is not successful completion.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_Notify(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_Notify_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

PublishModel ​

UIModelUpdate → StateSnapshot

PropertyContract
Local SDK method ID18
KindMutation
Permissionnexa.ui.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
ViewEntityIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
SchemaSchemaRefExact schema identity, version and fingerprint used to validate Value.
ValueAbiValuePayload interpreted using the accompanying or declared schema; Null is not a substitute for an error.
ExpectedRevisionRevision?Revision observed before this change. Preserve it exactly; a mismatch requires re-reading and reconciling the target. Nullable; omission is distinct from an empty value. No implicit default is promised by this type.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_PublishModel(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_PublishModel_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

UpdateModel ​

UIModelUpdate → StateSnapshot

PropertyContract
Local SDK method ID19
KindMutation
Permissionnexa.ui.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
ViewEntityIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
SchemaSchemaRefExact schema identity, version and fingerprint used to validate Value.
ValueAbiValuePayload interpreted using the accompanying or declared schema; Null is not a substitute for an error.
ExpectedRevisionRevision?Revision observed before this change. Preserve it exactly; a mismatch requires re-reading and reconciling the target. Nullable; omission is distinct from an empty value. No implicit default is promised by this type.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_UpdateModel(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_UpdateModel_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

WatchViewLifecycle ​

UIViewWatch → SubscriptionRef

PropertyContract
Local SDK method ID20
KindSubscription
Permissionnexa.ui.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
ViewEntityIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
ViewScopeGuidDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
Cursorstring?Opaque continuation or observation cursor. Reuse only in the issuing query/scope; absence and invalidity are different. Nullable; omission is distinct from an empty value. No implicit default is promised by this type.

Successful result

Retain the subscription identity, consume bounded batches or callbacks as specified, handle gaps, and release it when no longer needed.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_WatchViewLifecycle(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_WatchViewLifecycle_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

ListExtensionTargets ​

PageRequest → Page<UIViewContract> (wrapper, item)

PropertyContract
Local SDK method ID21
KindQuery
Permissionnexa.ui.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
Cursorstring?Opaque continuation or observation cursor. Reuse only in the issuing query/scope; absence and invalidity are different. Nullable; omission is distinct from an empty value. No implicit default is promised by this type.
LimitlongRequested bound on returned items. The Host may impose a smaller domain-specific limit.

Successful result

Read Items and continue with NextCursor while preserving the original query. An absent cursor ends the sequence; an invalid cursor is an error.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_ListExtensionTargets(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_ListExtensionTargets_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

DescribeViewContract ​

QualifiedRequest → UIViewContract

PropertyContract
Local SDK method ID22
KindQuery
Permissionnexa.ui.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_DescribeViewContract(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_DescribeViewContract_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

CreateDrawingSurface ​

DrawingSurfaceRequest → DrawingSurfaceRef

PropertyContract
Local SDK method ID23
KindOperation
Permissionnexa.ui.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
WidthdoubleDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
HeightdoubleDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
ViewScopeGuidDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_CreateDrawingSurface(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_CreateDrawingSurface_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

SubmitDrawCommands ​

DrawSubmission → Empty

PropertyContract
Local SDK method ID24
KindMutation
Permissionnexa.ui.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
SurfaceDrawingSurfaceRefStructured DrawingSurfaceRef value; follow its linked field contract.
CommandsDrawCommand[]Structured DrawCommand value; follow its linked field contract. A bounded collection; do not assume an unbounded result or unspecified ordering.
ExpectedRevisionRevisionRevision observed before this change. Preserve it exactly; a mismatch requires re-reading and reconciling the target.

Successful result

There is no result payload beyond the encoded Empty model. Check Success; an empty failure value is not successful completion.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_SubmitDrawCommands(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_SubmitDrawCommands_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

SubscribeInput ​

InputSubscription → SubscriptionRef

PropertyContract
Local SDK method ID25
KindSubscription
Permissionnexa.ui.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
SurfaceDrawingSurfaceRefStructured DrawingSurfaceRef value; follow its linked field contract.
EventsInputEventKind[]Use an exact enum member listed in the reference. The Host can support a subset for a particular operation. A bounded collection; do not assume an unbounded result or unspecified ordering.
HandlerulongCallback identifier registered by this plugin. A handler alone is not a public action or provider registration.

Successful result

Retain the subscription identity, consume bounded batches or callbacks as specified, handle gaps, and release it when no longer needed.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_UI_SubscribeInput(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_UI_SubscribeInput_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.


Source: NexaCL-Plugin-SDK · Apache-2.0.

Site documentation: CC BY-SA 4.0. Imported SDK documents: Apache-2.0 as marked.