SurfaceSyncGroup.Add Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
Add(IAttachedSurfaceControl, IRunnable) |
Aggiungere un oggetto AttachedSurfaceControl a SurfaceSyncGroup. |
Add(SurfaceControlViewHost+SurfacePackage, IRunnable) |
Add(IAttachedSurfaceControl, IRunnable)
Aggiungere un oggetto AttachedSurfaceControl a SurfaceSyncGroup.
[Android.Runtime.Register("add", "(Landroid/view/AttachedSurfaceControl;Ljava/lang/Runnable;)Z", "", ApiSince=34)]
public bool Add (Android.Views.IAttachedSurfaceControl? attachedSurfaceControl, Java.Lang.IRunnable? runnable);
[<Android.Runtime.Register("add", "(Landroid/view/AttachedSurfaceControl;Ljava/lang/Runnable;)Z", "", ApiSince=34)>]
member this.Add : Android.Views.IAttachedSurfaceControl * Java.Lang.IRunnable -> bool
Parametri
- attachedSurfaceControl
- IAttachedSurfaceControl
AttachedSurfaceControl che verrà aggiunto a questo SurfaceSyncGroup.
- runnable
- IRunnable
Questa operazione viene eseguita nello stesso thread in cui è stata eseguita la chiamata, ma dopo che il rendering è stato sospeso e prima di continuare a eseguire il rendering del frame successivo. Questo metodo non verrà restituito fino al completamento dell'esecuzione dell'eseguibile. Può essere usato per apportare modifiche a AttachedSurfaceControl, assicurandosi che le modifiche vengano incluse nella sincronizzazione.
Restituisce
true se AttachedSurfaceControl è stato aggiunto correttamente a SurfaceSyncGroup, false in caso contrario.
- Attributi
Commenti
Aggiungere un oggetto AttachedSurfaceControl a SurfaceSyncGroup. AttachedSurfaceControl sospende il rendering per garantire che l'esecuzione possa essere richiamata e che la sincronizzazione rilevi il frame che contiene le modifiche.
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.
Si applica a
Add(SurfaceControlViewHost+SurfacePackage, IRunnable)
[Android.Runtime.Register("add", "(Landroid/view/SurfaceControlViewHost$SurfacePackage;Ljava/lang/Runnable;)Z", "", ApiSince=34)]
public bool Add (Android.Views.SurfaceControlViewHost.SurfacePackage surfacePackage, Java.Lang.IRunnable? runnable);
[<Android.Runtime.Register("add", "(Landroid/view/SurfaceControlViewHost$SurfacePackage;Ljava/lang/Runnable;)Z", "", ApiSince=34)>]
member this.Add : Android.Views.SurfaceControlViewHost.SurfacePackage * Java.Lang.IRunnable -> bool
Parametri
- surfacePackage
- SurfaceControlViewHost.SurfacePackage
- runnable
- IRunnable
Restituisce
- Attributi