SetProgress(Value: Double);
SetProgress(Value: double);
Value. Share of exported data.
The SetProgress method implements the event that occurs during publishing a mobile application object.
The Value parameter returns values in the range [0; 1].
The example describes a custom class that is an event handler. Add a link to the Mobile system assembly.
Class PublishObjectCallback: Object, IMobilePublishObjectCallBack
// Event that occurs during object publication
Public Sub SetProgress(Value: Double);
Var
r: Double;
Begin
r := Value * 100;
Debug.WriteLine("Published(%): " + r.ToString);
End Sub SetProgress;
End Class PublishObjectCallback;
The class use for handling events is given in the Fore example for IMobilePublishObject.LoadFromXml.
The example describes a custom class that is an event handler. Add a link to the Mobile system assembly.
Imports Prognoz.Platform.Interop.Mobile;
Public Class PublishObjectCallback: Object, IMobilePublishObjectCallBack
// Event that occurs during object publication
Public Sub SetProgress(Value: Double);
Var
r: Double;
Begin
r := Value * 100;
System.Diagnostics.Debug.WriteLine("Published(%): " + r.ToString()).
End Sub SetProgress;
End Class PublishObjectCallback;
The class use for handling events is given in the Fore.NET example for IMobilePublishObject.LoadFromXml.
See also: