getParameter

abstract fun getParameter(pname: GLenum): Any?(source)

MDN Reference