FrameFilterImpl.AddBoolParam Method

Registers a boolean parameter than can be accessed using the methods of FrameFilter.
Syntax:
public delegate void SetBoolParam( bool value );
public delegate bool GetBoolParam();
protected void AddBoolParam( string name, SetBoolParam setFunc, GetBoolParam getFunc );

Name Description
name

Name of the parameter. This string has to be passed to FrameFilter.SetBoolParameter or FrameFilter.GetBoolParameter to access the parameter.

getFunc

GetBoolParam delegates responsible to return the current state of the parameter.

setFunc

SetBoolParam delegates responsible to receive and handle changes of the parameter.

Remarks:

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

Example:

For an example on how to register a parameter, see AddIntParam.

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

<< FrameFilterImpl