Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Bağlantı > getShadowState
Connection.getShadowState() yöntemi
Bağlantının gölge bloğunun serileştirilmiş nesne gösterimini döndürür.
İmza:
getShadowState(returnCurrent?: boolean): blocks.State | null;
Parametreler
Parametre |
Tür |
Açıklama |
returnCurrent |
boolean |
(İsteğe bağlı) Doğru ise ve gölge bloğu şu anda bu bağlantıya eklenmişse bu işlem, ilgili bloğun durumunu serileştirir ve geri döndürür (böylece alan değerleri doğru olur). Aksi takdirde, kaydedilen durum yeni döndürülür. |
Şunu döndürür:
blocks.State | boş
Bloğun serileştirilmiş nesne gösterimi veya boş.
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-07-25 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[],["The `getShadowState` method retrieves the serialized representation of a connection's shadow block. It accepts an optional `returnCurrent` boolean parameter. If `returnCurrent` is true and a shadow block is attached, the method returns the current state of that block, including field values. Otherwise, it returns the saved state. The method outputs either a serialized object representation of the block (`blocks.State`) or `null` if no shadow block is associated.\n"]]