ChartIQHandler

class ChartIQHandler(chartIQUrl: String, context: Context) : ChartIQ, ChartIQStudy, JavaScriptHandler

Types

Companion
Link copied to clipboard
object Companion

Functions

addMeasureListener
Link copied to clipboard
open override fun addMeasureListener(measureCallback: MeasureCallback)
Adds a measure listener
addSeries
Link copied to clipboard
open override fun addSeries(series: Series, isComparison: Boolean)
Adds the symbol from the series to the chart with its color.
addStudy
Link copied to clipboard
open override fun addStudy(study: Study, forClone: Boolean)
Adds a study Study to a list of active studies
clearDrawing
Link copied to clipboard
open override fun clearDrawing()
Clears all the drawings from the chart canvas
cloneDrawing
Link copied to clipboard
open override fun cloneDrawing()
Clones the drawing that is selected on the chart
deleteDrawing
Link copied to clipboard
open override fun deleteDrawing()
Deletes the drawing that is selected on the chart
disableCrosshairs
Link copied to clipboard
open override fun disableCrosshairs()
Disables crosshairs
disableDrawing
Link copied to clipboard
open override fun disableDrawing()
Deactivates drawing mode
drawingChange
Link copied to clipboard
open override fun drawingChange(json: String)
enableCrosshairs
Link copied to clipboard
open override fun enableCrosshairs()
Enables crosshairs
enableDrawing
Link copied to clipboard
open override fun enableDrawing(type: DrawingTool)
Activates a selected drawing DrawingTool
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getActiveSeries
Link copied to clipboard
open override fun getActiveSeries(callback: OnReturnCallback<List<Series>>)
Gets all active series on the chart.
getActiveStudies
Link copied to clipboard
open override fun getActiveStudies(callback: OnReturnCallback<List<Study>>)
Gets a list of active/selected studies Study
getChartAggregationType
Link copied to clipboard
open override fun getChartAggregationType(callback: OnReturnCallback<ChartAggregationType?>)
Gets a selected aggregation chart type
getChartScale
Link copied to clipboard
open override fun getChartScale(callback: OnReturnCallback<ChartScale>)
Gets a selected chart scale
getChartType
Link copied to clipboard
open override fun getChartType(callback: OnReturnCallback<ChartType?>)
Gets a selected chart type
getDrawingParameters
Link copied to clipboard
open override fun getDrawingParameters(tool: DrawingTool, callback: OnReturnCallback<Map<String, Any>>)
Get a map of current parameters and settings for the requested drawing tool tool
getHUDDetails
Link copied to clipboard
open override fun getHUDDetails(callback: OnReturnCallback<CrosshairHUD>)
Get HUD details
getIsExtendedHours
Link copied to clipboard
open override fun getIsExtendedHours(callback: OnReturnCallback<Boolean>)
Gets a selected extended-hours visualization
getIsInvertYAxis
Link copied to clipboard
open override fun getIsInvertYAxis(callback: OnReturnCallback<Boolean>)
Gets a selected chart Y axis invertion
getStudyList
Link copied to clipboard
open override fun getStudyList(callback: OnReturnCallback<List<Study>>)
Gets a list of available studies Study
getStudyParameters
Link copied to clipboard
open override fun getStudyParameters(study: Study, type: StudyParameterType, callback: OnReturnCallback<List<StudyParameter>>)
Gets a list of parameters StudyParameter of a selected study Study
getTranslations
Link copied to clipboard
open override fun getTranslations(languageCode: String, callback: OnReturnCallback<Map<String, String>>)
Returns a map of translations for a given language
hashCode
Link copied to clipboard
open fun hashCode(): Int
layoutChange
Link copied to clipboard
open override fun layoutChange(json: String)
manageLayer
Link copied to clipboard
open override fun manageLayer(layer: ChartLayer)
Changes the layer of the drawing that is selected on the chart
measureChange
Link copied to clipboard
open override fun measureChange(json: String)
pullInitialData
Link copied to clipboard
open override fun pullInitialData(symbol: String?, period: String?, interval: String?, start: String?, end: String?, meta: String?, callbackId: String?)
pullPagination
Link copied to clipboard
open override fun pullPagination(symbol: String?, period: String?, interval: String?, start: String?, end: String?, meta: String?, callbackId: String?)
pullUpdate
Link copied to clipboard
open override fun pullUpdate(symbol: String?, period: String?, interval: String?, start: String?, meta: String?, callbackId: String?)
redoDrawing
Link copied to clipboard
open override fun redoDrawing(callback: OnReturnCallback<Boolean>)
Redoes the last drawing change
removeSeries
Link copied to clipboard
open override fun removeSeries(symbolName: String)
Removes a selected symbol from the chart's series.
removeStudy
Link copied to clipboard
open override fun removeStudy(study: Study)
Removes a selected study Study from the list of active studies
restoreDefaultDrawingConfig
Link copied to clipboard
open override fun restoreDefaultDrawingConfig(tool: DrawingTool, all: Boolean)
Restores the drawing tool to its default settings
setAggregationType
Link copied to clipboard
open override fun setAggregationType(aggregationType: ChartAggregationType)
Sets an Aggregation type for charts
setChartScale
Link copied to clipboard
open override fun setChartScale(scale: ChartScale)
Sets an chart scale for charts
setChartType
Link copied to clipboard
open override fun setChartType(chartType: ChartType)
Sets an chart type for charts
setDataMethod
Link copied to clipboard
open override fun setDataMethod(method: DataMethod, symbol: String)
Sets data method and symbol to the chart
setDataSource
Link copied to clipboard
open override fun setDataSource(dataSource: DataSource)
Sets a DataSource for ChartIQ.
setDrawingParameter
Link copied to clipboard
open override fun setDrawingParameter(parameter: DrawingParameterType, value: String)
Sets a value for the drawing tool parameter
open override fun setDrawingParameter(parameterName: String, value: String)
Sets a value for the drawing tool parameter
setExtendedHours
Link copied to clipboard
open override fun setExtendedHours(extended: Boolean)
Sets to turn on/off the extended-hours visualization.
setIsInvertYAxis
Link copied to clipboard
open override fun setIsInvertYAxis(inverted: Boolean)
Setting to true causes the y-axis and all linked drawings, series and studies to display inverted (flipped) from its previous state
setLanguage
Link copied to clipboard
open override fun setLanguage(languageCode: String)
Sets a language that should be used within the app
setPeriodicity
Link copied to clipboard
open override fun setPeriodicity(period: Int, interval: String, timeUnit: TimeUnit)
Sets periodicity to the chart
setSeriesParameter
Link copied to clipboard
open override fun setSeriesParameter(symbolName: String, parameterName: String, value: String)
Modifies a property of an existing series.
setStudyParameter
Link copied to clipboard
open override fun setStudyParameter(study: Study, parameter: StudyParameterModel)
Modifies a selected study Study with a single parameter
setStudyParameters
Link copied to clipboard
open override fun setStudyParameters(study: Study, parameters: List<StudyParameterModel>)
Modifies a selected study Study with a given list of parameters
setSymbol
Link copied to clipboard
open override fun setSymbol(symbol: String)
Sets a symbol to the chart
setTheme
Link copied to clipboard
open override fun setTheme(theme: ChartTheme)
Sets a theme to the chart
start
Link copied to clipboard
open override fun start(onStartCallback: OnStartCallback)
Starts a ChartIQ WebClient initialization
toString
Link copied to clipboard
open fun toString(): String
undoDrawing
Link copied to clipboard
open override fun undoDrawing(callback: OnReturnCallback<Boolean>)
Undoes the last drawing change

Properties

chartView
Link copied to clipboard
open override val chartView: View
A ChartIQ View that represents a ChartIQ UI