HarmonyOS: Home-screen cards

Aperta
#1,520 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, typescript
Ambito
mobile-dev

Direzione di ricerca

The reference card page is cmd/nsgo/harmony/templates/entry/src/main/ets/widget/pages/WidgetCard.ets; read it alongside the existing widget.Update path and the form extension registration to see where host data is written. Trace how formBindingData and formProvider.updateForm are meant to feed the provider, and where onUpdateForm answers system refreshes. Done means a card added by long-pressing 卡片 on the emulator shows app data drawn with ArkUI and updates through the host; timed refresh measurement is out of scope.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement
Context

Part of #1320. The roadmap's HarmonyOS section lists this item (line 351 of docs/roadmap.md at f7fc2f5c) with no issue.

Reference: cmd/nsgo/harmony/templates/entry/src/main/ets/widget/pages/WidgetCard.ets

Acceptance
  • A card's data comes from the app through formBindingData and formProvider.updateForm, and its look from a card page that draws with ArkUI, since a card has no Web view; widget.Update now reaches the host, which writes the data and the form ids to files the provider reads, and onUpdateForm answers the system's refresh; the app's path, the form extension's registration and a card added to the home screen are checked on the HarmonyOS emulator, whose launcher offers 卡片 on a long press of the app's icon and sends onAddForm the form id; the system's timed onUpdateForm is still unmeasured

For: 开发@柚子

Lingua principale
Go
Stelle
684
Fork
41
Merge medio
8h 8m
PR unite (30g)
911

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nsgo-dev/nsgo

Tutte le issue di nsgo-dev/nsgo

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.