Otherwise the load will fail and the.error() callback will be triggered-causing the drawable resource returned from the error callback to be shown.
De otro modo la carga fallará y el callback.error() será disparado - causando que el recurso drawable devuelto desde el callback de error sea mostrado.
Alte rezultate
The callback function must correspondingly follow the error-first callback convention to meaningfully handle the error.
To handle these failures, you can provide an error callback when you attach your snapshot listener.
Para solucionar estas fallas, puedes proporcionar una devolución de llamada de error cuando adjuntes el agente de escucha de instantáneas.
The most obvious usage for an error callback involves a common scenario in many user-level applications that use system-level packages.
El uso más obvio para un callback de error envuelve un escenario común en muchas aplicaciones de nivel de usuario que usan paquetes de nivel de sistema.
A generic error handling callback means that every single error raised will be handled in the same error callback.
If you attempt to launch a URI and your app isn't in the foreground, the launch will fail and your error callback will be invoked.
Si intentas iniciar un URI y tu aplicación no está en primer plano, se producirá un error en el inicio y se invocará a la devolución de llamada de error.
The error callback function, which is optional just as it is for getCurrentPosition(), can be called repeatedly.
La función de callback de error, la cual es opcional como en getCurrentPosition(), es llamada solo una vez, cuando nunca para dejar de rastrear la posición del usuario.
We do a bit more for the error callback: if the native side fires off the error callback, we simply invoke the success callback and pass into it a "default" string.
Si la plataforma nativa despide el callback de error, simplemente pide la devolución de llamada de éxito y pasa una cadena predeterminada.
If you attempt to launch an intranet URI without the correct capability or a local zone URI, the launch will fail and your error callback will be invoked. Complete example
Si intentas iniciar un URI de intranet sin la funcionalidad adecuada o un URI de zona local, se producirá un error en el inicio y se invocará a la devolución de llamada de error.
Both getCurrentPosition() and watchPosition() accept a success callback, an optional error callback, and an optional PositionOptions object.
Ambos aceptan una función de callback en caso de éxito, una función callback opcional si ocurre algún error, y un objeto PositionOptions también opcional.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple