Tesis 1.0.0
Loading...
Searching...
No Matches
com.example.food_front.utils.ImageUpdateReceiver Class Reference
Inheritance diagram for com.example.food_front.utils.ImageUpdateReceiver:

Classes

interface  ImageUpdateListener

Public Member Functions

 ImageUpdateReceiver (ImageUpdateListener listener)
void onReceive (Context context, Intent intent)
void register (Context context)
void unregister (Context context)

Static Public Member Functions

static void notifyImageUpdated (Context context, String imageUrl)

Static Public Attributes

static final String ACTION_IMAGE_UPDATED = "com.example.food_front.IMAGE_UPDATED"
static final String EXTRA_IMAGE_URL = "image_url"

Detailed Description

Receptor de broadcast para notificar cuando la imagen de perfil ha sido actualizada. Esto permite que cualquier fragmento o actividad pueda registrarse para ser notificado cuando la imagen de perfil cambie y así actualizar su interfaz.

Definition at line 14 of file ImageUpdateReceiver.java.

Constructor & Destructor Documentation

◆ ImageUpdateReceiver()

com.example.food_front.utils.ImageUpdateReceiver.ImageUpdateReceiver ( ImageUpdateListener listener)
inline

Constructor que recibe el listener para notificar cambios

Definition at line 24 of file ImageUpdateReceiver.java.

Member Function Documentation

◆ notifyImageUpdated()

void com.example.food_front.utils.ImageUpdateReceiver.notifyImageUpdated ( Context context,
String imageUrl )
inlinestatic

Envía una notificación a todos los receptores registrados

Definition at line 62 of file ImageUpdateReceiver.java.

◆ onReceive()

void com.example.food_front.utils.ImageUpdateReceiver.onReceive ( Context context,
Intent intent )
inline

Definition at line 29 of file ImageUpdateReceiver.java.

◆ register()

void com.example.food_front.utils.ImageUpdateReceiver.register ( Context context)
inline

Registra este receptor para recibir notificaciones

Definition at line 43 of file ImageUpdateReceiver.java.

◆ unregister()

void com.example.food_front.utils.ImageUpdateReceiver.unregister ( Context context)
inline

Desregistra este receptor

Definition at line 51 of file ImageUpdateReceiver.java.

Member Data Documentation

◆ ACTION_IMAGE_UPDATED

final String com.example.food_front.utils.ImageUpdateReceiver.ACTION_IMAGE_UPDATED = "com.example.food_front.IMAGE_UPDATED"
static

Definition at line 16 of file ImageUpdateReceiver.java.

◆ EXTRA_IMAGE_URL

final String com.example.food_front.utils.ImageUpdateReceiver.EXTRA_IMAGE_URL = "image_url"
static

Definition at line 17 of file ImageUpdateReceiver.java.


The documentation for this class was generated from the following file: