Delegate PackageManager.RequestEventCallback

Definition

Namespace:
Tizen.Applications
Assembly:
Tizen.Applications.PackageManager.dll

Event callback method for the request.

C#
Copy
public delegate void PackageManager.RequestEventCallback(string type, string packageId, PackageEventType eventType, PackageEventState eventState, int progress)
Remarks

The RequestEventCallback function provides information about the current status of a package request. It is called every time there is an update in the package request process. By monitoring the arguments passed to this function, you can keep track of the progress and events related to the package request.

Examples
Copy
private static void OnRequestEventCallback(string type, string packageId, PackageEventType eventType, PackageEventState eventState, int progress) { switch (eventType) { case PackageEventType.Installing: Console.WriteLine($"Package '{packageId}' is currently installing."); break; case PackageEventType.Updating: Console.WriteLine($"Package '{packageId}' is currently updating."); break; case PackageEventType.Removing: Console.WriteLine($"Package '{packageId}' is currently removing."); break; default: throw new ArgumentException($"Unknown event type: {eventType}"); } }