FrameFilterImpl.AddStringParam Method

Registers a string parameter than can be accessed using the methods of FrameFilter.
Syntax:
public delegate void SetStringParam( string value );
public delegate string GetStringParam();
protected void AddStringParam( string name, SetStringParam setFunc, GetStringParam getFunc );

Name Description
name

Name of the parameter. This string has to be passed to FrameFilter.SetStringParameter or FrameFilter.GetStringParameter to access the parameter.

getFunc

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

setFunc

SetStringParam 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.AddBoolParam, FrameFilterImpl.AddIntParam, FrameFilterImpl.AddFloatParam, FrameFilterImpl.AddDataParam

<< FrameFilterImpl