Constructor NativeProgress
NativeProgress(PiXYZAPI, SyncedProgress, string, float, float, int)
Initializes a new instance of the NativeProgress class.
Declaration
public NativeProgress(PiXYZAPI api, SyncedProgress syncedProgress, string name = null, float min = 0, float max = 1, int stepCount = -1)
Parameters
Type | Name | Description |
---|---|---|
PiXYZAPI | api | The PiXYZ API instance used for progress tracking. |
SyncedProgress | syncedProgress | The synchronized progress instance for reporting progress. |
string | name | Optional name for the progress instance. |
float | min | The minimum progress value (default is 0). |
float | max | The maximum progress value (default is 1). |
int | stepCount | The number of steps for stepped progress (default is -1 for continuous progress). |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if |
ArgumentNullException | Thrown if |