FrameFilterImpl.AddDataParam Method

Registers a data parameter than can be accessed using the methods of FrameFilter.
Syntax:
public delegate void SetDataParam( byte[] value );
public delegate byte[] GetDataParam();
protected void AddDataParam( string name, SetDataParam setFunc, GetDataParam getFunc );

Name Description
name

Name of the parameter. This string has to be passed to FrameFilter.SetDataParameter or FrameFilter.GetDataParameter to access the parameter.

getFunc

Delegate responsible to return the current state of the parameter.

setFunc

Delegate responsible to receive and handle changes of the parameter.

Remarks:

All parameters of a frame filter should be registered in its constructor.

See also: FrameFilterImpl, FrameFilterImpl.AddBoolParam, FrameFilterImpl.AddIntParam, FrameFilterImpl.AddFloatParam, FrameFilterImpl.AddStringParam

<< FrameFilterImpl