Yöntem imzası Subscribable.subscribe
Geri arama eklenmesine olanak tanır. Bu geri çağırma işlevi, değer güncellendiğinde çağrılır.
İmza
subscribe(callback: (value: T) => void): () => void;
Ayrıntılar
Parametreler
Ad |
Tür |
İsteğe bağlı |
Açıklama |
callback |
(value: T) => void |
Hayır |
|
İadeler
() => void
Abonelikten çıkma işlevi.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-02-04 UTC.
[null,null,["Son güncelleme tarihi: 2025-02-04 UTC."],[[["This functionality is available through the Google Workspace Developer Preview Program, offering early access to new features."],["A subscription callback can be implemented to monitor and respond to value updates."],["The `subscribe` method takes a mandatory callback function as a parameter, which is invoked when a value changes."],["The `subscribe` function returns an unsubscribe function, allowing the user to stop the subscription when they need to."]]],[]]