Idioma

ISurfaceHolderCallback.SurfaceChanged Método

Definição

Isso é chamado imediatamente após alterações estruturais (formato ou tamanho) terem sido feitas na superfície.

[Android.Runtime.Register("surfaceChanged", "(Landroid/view/SurfaceHolder;III)V", "GetSurfaceChanged_Landroid_view_SurfaceHolder_IIIHandler:Android.Views.ISurfaceHolderCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SurfaceChanged(Android.Views.ISurfaceHolder holder, Android.Graphics.Format format, int width, int height);
[<Android.Runtime.Register("surfaceChanged", "(Landroid/view/SurfaceHolder;III)V", "GetSurfaceChanged_Landroid_view_SurfaceHolder_IIIHandler:Android.Views.ISurfaceHolderCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SurfaceChanged : Android.Views.ISurfaceHolder * Android.Graphics.Format * int * int -> unit

Parâmetros

holder
ISurfaceHolder

O SurfaceHolder cuja superfície foi alterada.

format
Format

O novo PixelFormat da superfície.

width
Int32

A nova largura da superfície.

height
Int32

A nova altura da superfície.

Atributos

Comentários

Isso é chamado imediatamente após alterações estruturais (formato ou tamanho) terem sido feitas na superfície. Neste ponto, você deve atualizar as imagens na superfície. Esse método é sempre chamado pelo menos uma vez, depois #surfaceCreatedde .

Documentação Java para android.view.SurfaceHolder.Callback.surfaceChanged(android.view.SurfaceHolder, int, int, int).

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Android Open Source Project e usadas de acordo com os termos descritos na Licença de Atribuição Creative Commons 2.5.

Aplica-se a