Search Results for

    Show / Hide Table of Contents

    Class CallbackPageAction

    • C#
    • Visual Basic
    [JsonObject]
    public class CallbackPageAction : FeaturePageAction
    <JsonObject>
    Public Class CallbackPageAction
        Inherits FeaturePageAction
    Inheritance
    System.Object
    FeaturePageAction
    CallbackPageAction
    Inherited Members
    FeaturePageAction.PageAction
    FeaturePageAction.Selector
    FeaturePageAction.Data
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: HomeSeer.PluginSdk.Features.Responses.PageActions
    Assembly: PluginSdk.dll


    A FeaturePageAction used to instruct the client to callback to the plugin after waiting a specified amount of time


    Remarks

    Uses the setTimeout() method to schedule a call to the featurePagePost JS method after a specified amount of time.

    The javascript that handles this is not included in the FeaturePagePost.js file by default and must be included manually. Add the following to the end of the switch statement in the onFeaturePagePostSuccess, replacing PUTCALLBACKURLHERE with the URL for your page:

    case "callback":
        setTimeout(function() {featurePagePost(pageAction.data, PUTCALLBACKURLHERE)}, pageAction.selector);
        break;

    Constructors

    View Source

    CallbackPageAction()

    Create a new FeaturePageAction with the Callback action type

    Declaration
    • C#
    • Visual Basic
    [JsonConstructor]
    public CallbackPageAction()
    <JsonConstructor>
    Public Sub New
    View Source

    CallbackPageAction(String, Int32)

    Create a new instance of a FeaturePageAction with the Callback action type that will send the specified data blob after waiting the specified amount of time

    Declaration
    • C#
    • Visual Basic
    public CallbackPageAction(string data, int timeout)
    Public Sub New(data As String, timeout As Integer)
    Parameters
    Type Name Description
    System.String data

    The data to include in the next request

    System.Int32 timeout

    The amount of time to wait, in millisecond, before making the callback request

    • View Source
    In This Article
    Back to top HomeSeer Technologies