IMobilePublishObjectCallBack.SetProgress

Fore Syntax

SetProgress(Value: Double);

Fore.NET Syntax

SetProgress(Value: double);

Parameters

Value. Share of exported data.

Description

The SetProgress method implements the event that occurs during publishing a mobile application object.

Comments

The Value parameter returns values in the range [0; 1].

Fore Example

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.

Fore.NET Example

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:

IMobilePublishObjectCallBack