Skip to content

interface IOptionsMonitor

cangjie
public interface IOptionsMonitor<TOptions> where TOptions <: Object

功能:定义按名称访问选项值的监视接口。

成员概览

成员功能
prop currentValue返回默认名称对应的当前选项值。
func get(String)按名称获取选项值。

prop currentValue

cangjie
prop currentValue: TOptions

功能:返回默认名称对应的当前选项值。

类型:TOptions

func get(String)

cangjie
func get(name: String): TOptions

功能:按名称获取选项值。

参数:

  • name: String - 选项名称。

返回值:

  • TOptions - 返回对应名称的选项值。