class DataSet(JavaBridgeObject): __nativeclass__ = set_default('com.github.mikephil.charting.data.DataSet') setColor = JavaMethod('android.graphics.Color') setColors = JavaMethod('[Landroid.graphics.Color;') # It's a list? setValueTextColor = JavaMethod('android.graphics.Color') setDrawIcons = JavaMethod('boolean') setDrawCircles = JavaMethod('boolean')
class MapFragment(JavaBridgeObject): """ Note: You must add "compile 'com.android.support:cardview-v7:21.0.+'" to build.gradle for this to work! """ __nativeclass__ = set_default( 'com.google.android.gms.maps.SupportMapFragment') newInstance = JavaStaticMethod( 'com.google.android.gms.maps.GoogleMapOptions', returns='com.google.android.gms.maps.SupportMapFragment') getMapAsync = JavaMethod('com.google.android.gms.maps.OnMapReadyCallback') getView = JavaMethod(returns='android.view.View')
class Polyline(MapItemBase): __nativeclass__ = set_default('com.google.android.gms.maps.model.Polyline') setClickable = JavaMethod('boolean') setColor = JavaMethod('android.graphics.Color') setGeodesic = JavaMethod('boolean') setPoints = JavaMethod('java.util.List') setEndCap = JavaMethod('com.google.android.gms.maps.model.Cap') setStartCap = JavaMethod('com.google.android.gms.maps.model.Cap') setJointType = JavaMethod('int') setWidth = JavaMethod('float') JOINT_TYPE_DEFAULT = 0 JOINT_TYPE_BEVEL = 1 JOINT_TYPE_ROUND = 2 JOINT_TYPES = { '': JOINT_TYPE_DEFAULT, 'bevel': JOINT_TYPE_BEVEL, 'round': JOINT_TYPE_ROUND } CAPS = { 'butt': ButtCap, 'round': RoundCap, 'square': SquareCap, }
class MarkerOptions(MapItemOptionsBase): __nativeclass__ = set_default( 'com.google.android.gms.maps.model.MarkerOptions') alpha = JavaMethod('float') anchor = JavaMethod('float', 'float') draggable = JavaMethod('boolean') flat = JavaMethod('boolean') icon = JavaMethod('com.google.android.gms.maps.model.BitMapDescriptor') position = JavaMethod('com.google.android.gms.maps.model.LatLng') rotation = JavaMethod('float') snippet = JavaMethod('java.lang.String') title = JavaMethod('java.lang.String')
class PolygonOptions(MapItemOptionsBase): __nativeclass__ = set_default( 'com.google.android.gms.maps.model.PolygonOptions') clickable = JavaMethod('clickable') fillColor = JavaMethod('android.graphics.Color') #add = JavaMethod('com.google.android.gms.maps.model.LatLng') add = JavaMethod('[Lcom.google.android.gms.maps.model.LatLng;') addAll = JavaMethod('java.lang.Iterable') addHole = JavaMethod('java.lang.Iterable') geodesic = JavaMethod('boolean') strokeColor = JavaMethod('android.graphics.Color') strokeJointType = JavaMethod('int') strokeWidth = JavaMethod('float')
class PolylineOptions(MapItemOptionsBase): __nativeclass__ = set_default( 'com.google.android.gms.maps.model.PolylineOptions') #add = JavaMethod('com.google.android.gms.maps.model.LatLng') add = JavaMethod('[Lcom.google.android.gms.maps.model.LatLng;') addAll = JavaMethod('java.lang.Iterable') clickable = JavaMethod('clickable') color = JavaMethod('android.graphics.Color') endCap = JavaMethod('com.google.android.gms.maps.model.Cap') geodesic = JavaMethod('boolean') jointType = JavaMethod('int') startCap = JavaMethod('com.google.android.gms.maps.model.Cap') width = JavaMethod('float')
class Polygon(MapItemBase): __nativeclass__ = set_default('com.google.android.gms.maps.model.Polygon') setClickable = JavaMethod('boolean') setFillColor = JavaMethod('android.graphics.Color') setGeodesic = JavaMethod('boolean') setHoles = JavaMethod('java.util.List') setPoints = JavaMethod('java.util.List') setStrokeColor = JavaMethod('android.graphics.Color') setStrokeJointType = JavaMethod('int') setStrokeWidth = JavaMethod('float')
class ChartData(JavaBridgeObject): __nativeclass__ = set_default( 'com.github.mikephil.charting.data.ChartData') clearValues = JavaMethod() addDataSet = JavaMethod('java.lang.Object') removeDataSet = JavaMethod('int') notifyDataChanged = JavaMethod() setHighlightEnabled = JavaMethod('boolean') setValueTextColor = JavaMethod('android.graphics.Color') setValueTextSize = JavaMethod('float') setValueTypeface = JavaMethod('android.graphics.Typeface')
class ChartView(ViewGroup): __nativeclass__ = set_default('com.github.mikephil.charting.charts.Chart') setBorderColor = JavaMethod('android.graphics.Color') setBorderWidth = JavaMethod('float') setData = JavaMethod('com.github.mikephil.charting.data.ChartData') setNoDataText = JavaMethod('java.lang.String') setNoDataTextColor = JavaMethod('android.graphics.Color') setNoDataTextTypeface = JavaMethod('android.graphics.Typeface') invalidate = JavaMethod()
class Circle(MapItemBase): __nativeclass__ = set_default('com.google.android.gms.maps.model.Circle') setClickable = JavaMethod('boolean') setCenter = JavaMethod('com.google.android.gms.maps.model.LatLng') setRadius = JavaMethod('double') setFillColor = JavaMethod('android.graphics.Color') setStrokeColor = JavaMethod('android.graphics.Color') setStrokeWidth = JavaMethod('float')
class CircleOptions(MapItemOptionsBase): __nativeclass__ = set_default( 'com.google.android.gms.maps.model.CircleOptions') radius = JavaMethod('double') clickable = JavaMethod('boolean') center = JavaMethod('com.google.android.gms.maps.model.LatLng') fillColor = JavaMethod('android.graphics.Color') strokeColor = JavaMethod('android.graphics.Color') strokeWidth = JavaMethod('float')
class Dialog(JavaBridgeObject): #: Show the view for the specified duration. __nativeclass__ = "android.app.Dialog" __signature__ = [Context, "android.R"] show = JavaMethod() dismiss = JavaMethod() setCancelable = JavaMethod(bool) setCanceledOnTouchOutside = JavaMethod(bool) setContentView = JavaMethod(View) setTitle = JavaMethod("java.lang.CharSequence") setOnDismissListener = JavaMethod( "android.content.DialogInterface$OnDismissListener") onDismiss = JavaCallback("android.app.Dialog") setOnCancelListener = JavaMethod( "android.content.DialogInterface$OnCancelListener") onCancel = JavaCallback("android.app.Dialog") setOnKeyListener = JavaMethod( "android.content.DialogInterface$OnKeyListener") onKey = JavaCallback("android.app.Dialog", int, "android.view.KeyEvent")
class Dialog(JavaBridgeObject): #: Show the view for the specified duration. __nativeclass__ = set_default('android.app.Dialog') __signature__ = set_default(('android.content.Context', 'android.R')) show = JavaMethod() dismiss = JavaMethod() setCancelable = JavaMethod('boolean') setCanceledOnTouchOutside = JavaMethod('boolean') setContentView = JavaMethod('android.view.View') setTitle = JavaMethod('java.lang.CharSequence') setOnDismissListener = JavaMethod( 'android.content.DialogInterface$OnDismissListener') onDismiss = JavaCallback('android.app.Dialog') setOnCancelListener = JavaMethod( 'android.content.DialogInterface$OnCancelListener') onCancel = JavaCallback('android.app.Dialog') setOnKeyListener = JavaMethod( 'android.content.DialogInterface$OnKeyListener') onKey = JavaCallback('android.app.Dialog', 'int', 'android.view.KeyEvent')
class PopupWindow(JavaBridgeObject): #: Show the view for the specified duration. __nativeclass__ = "android.widget.PopupWindow" __signature__ = [Context, AttributeSet, int, "android.R"] dismiss = JavaMethod() setContentView = JavaMethod(View) setAnimationStyle = JavaMethod(int) setHeight = JavaMethod(int) setWidth = JavaMethod(int) showAsDropDown = JavaMethod(View, int, int, int) showAtLocation = JavaMethod(View, int, int, int) setFocusable = JavaMethod(bool) setTouchable = JavaMethod(bool) setOutsideTouchable = JavaMethod(bool) setAnimationStyle = JavaMethod("android.R") setOnDismissListener = JavaMethod( "android.widget.PopupWindow$OnDismissListener") onDismiss = JavaCallback() setTouchInterceptor = JavaMethod("android.view.View$OnTouchListener", returns=bool) onTouch = JavaCallback(View, "android.view.MotionEvent") update = JavaMethod(View, int, int, int, int) update_ = JavaMethod(int, int, int, int) setBackgroundDrawable = JavaMethod(Drawable)
class BarData(ChartData): __nativeclass__ = set_default('com.github.mikephil.charting.data.BarData') __signature__ = set_default(('java.util.List', )) setBarWidth = JavaMethod('float') #: fromx, groupSpace, barSpace groupBars = JavaMethod('float', 'float', 'float')
class MapItemBase(JavaBridgeObject): setTag = JavaMethod("java.lang.Object") setVisible = JavaMethod('boolean') setZIndex = JavaMethod('float') remove = JavaMethod()
class PopupWindow(JavaBridgeObject): #: Show the view for the specified duration. __nativeclass__ = set_default('android.widget.PopupWindow') __signature__ = set_default( ('android.content.Context', 'android.util.AttributeSet', 'int', 'android.R')) dismiss = JavaMethod() setContentView = JavaMethod('android.view.View') setAnimationStyle = JavaMethod('int') setHeight = JavaMethod('int') setWidth = JavaMethod('int') showAsDropDown = JavaMethod('android.view.View', 'int', 'int', 'int') showAtLocation = JavaMethod('android.view.View', 'int', 'int', 'int') setFocusable = JavaMethod('boolean') setTouchable = JavaMethod('boolean') setOutsideTouchable = JavaMethod('boolean') setAnimationStyle = JavaMethod('android.R') setOnDismissListener = JavaMethod( 'android.widget.PopupWindow$OnDismissListener') onDismiss = JavaCallback() setTouchInterceptor = JavaMethod('android.view.View$OnTouchListener', returns='boolean') onTouch = JavaCallback('android.view.View', 'android.view.MotionEvent') update = JavaMethod('android.view.View', 'int', 'int', 'int', 'int') update_ = JavaMethod('int', 'int', 'int', 'int') setBackgroundDrawable = JavaMethod('android.graphics.drawable.Drawable')
class GoogleMap(JavaBridgeObject): addCircle = JavaMethod('com.google.android.gms.maps.model.CircleOptions', returns='com.google.android.gms.maps.model.Circle') addMarker = JavaMethod('com.google.android.gms.maps.model.MarkerOptions', returns='com.google.android.gms.maps.model.Marker') addPolyline = JavaMethod( 'com.google.android.gms.maps.model.PolylineOptions', returns='com.google.android.gms.maps.model.Polyline') addPolygon = JavaMethod( 'com.google.android.gms.maps.model.PolygonOptions', returns='com.google.android.gms.maps.model.Polygon') onMapReady = JavaCallback('com.google.android.gms.maps.GoogleMap') animateCamera = JavaMethod('com.google.android.gms.maps.CameraUpdate') setLatLngBoundsForCameraTarget = JavaMethod( 'com.google.android.gms.maps.model.LatLngBounds') setMapType = JavaMethod('int') setMaxZoomPreference = JavaMethod('float') setMinZoomPreference = JavaMethod('float') setMyLocationEnabled = JavaMethod('boolean') setBuildingsEnabled = JavaMethod('boolean') setIndoorEnabled = JavaMethod('boolean') setTrafficEnabled = JavaMethod('boolean') setOnCameraChangeListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnCameraChangeListener') onCameraChange = JavaCallback( 'com.google.android.gms.maps.model.CameraPosition') setOnCameraMoveStartedListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnCameraMoveStartedListener') onCameraMoveStarted = JavaCallback('int') setOnCameraMoveStartedListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnCameraMoveStartedListener') setOnCameraMoveCanceledListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnCameraMoveCanceledListener') onCameraMoveCanceled = JavaCallback() setOnCameraIdleListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnCameraIdleListener') onCameraIdle = JavaCallback() CAMERA_REASON_GESTURE = 1 CAMERA_REASON_API_ANIMATION = 2 CAMERA_REASON_DEVELOPER_ANIMATION = 3 setOnMarkerClickListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnMarkerClickListener') onMarkerClick = JavaCallback('com.google.android.gms.maps.model.Marker', returns='boolean') setOnMarkerDragListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnMarkerDragListener') onMarkerDrag = JavaCallback('com.google.android.gms.maps.model.Marker') onMarkerDragEnd = JavaCallback('com.google.android.gms.maps.model.Marker') onMarkerDragStart = JavaCallback( 'com.google.android.gms.maps.model.Marker') #: Info windows setOnInfoWindowClickListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnInfoWindowClickListener') onInfoWindowClick = JavaCallback( 'com.google.android.gms.maps.model.Marker') setOnInfoWindowCloseListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnInfoWindowCloseListener') onInfoWindowClose = JavaCallback( 'com.google.android.gms.maps.model.Marker') setOnInfoWindowLongClickListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnInfoWindowLongClickListener') onInfoWindowLongClick = JavaCallback( 'com.google.android.gms.maps.model.Marker') setInfoWindowAdapter = JavaMethod( 'com.google.android.gms.maps.GoogleMap$InfoWindowAdapter') class InfoWindowAdapter(JavaProxy): __nativeclass__ = set_default( 'com.google.android.gms.maps.GoogleMap$InfoWindowAdapter') getInfoContents = JavaCallback( 'com.google.android.gms.maps.model.Marker', returns='android.view.View') getInfoWindow = JavaCallback( 'com.google.android.gms.maps.model.Marker', returns='android.view.View') #: Map clicks setOnMapClickListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnMapClickListener') onMapClick = JavaCallback('com.google.android.gms.maps.model.LatLng') setOnMapLongClickListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnMapLongClickListener') onMapLongClick = JavaCallback('com.google.android.gms.maps.model.LatLng') setOnPolylineClickListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnPolylineClickListener') onPolylineClick = JavaCallback( 'com.google.android.gms.maps.model.Polyline') setOnPolygonClickListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnPolygonClickListener') onPolygonClick = JavaCallback('com.google.android.gms.maps.model.Polygon') setOnCircleClickListener = JavaMethod( 'com.google.android.gms.maps.GoogleMap$OnCircleClickListener') onCircleClick = JavaCallback('com.google.android.gms.maps.model.Circle') MAP_TYPE_HYBRID = 4 MAP_TYPE_NONE = 0 MAP_TYPE_NORMAL = 1 MAP_TYPE_SATELLITE = 2 MAP_TYPE_TERRAIN = 3 MAP_TYPES = { 'none': MAP_TYPE_NONE, 'normal': MAP_TYPE_NORMAL, 'satellite': MAP_TYPE_SATELLITE, 'terrain': MAP_TYPE_TERRAIN, 'hybrid': MAP_TYPE_HYBRID, }
class GoogleMapOptions(JavaBridgeObject): __nativeclass__ = set_default( 'com.google.android.gms.maps.GoogleMapOptions') ambientEnabled = JavaMethod('boolean') camera = JavaMethod('com.google.android.gms.maps.model.CameraPosition') compassEnabled = JavaMethod('boolean') latLngBoundsForCameraTarget = JavaMethod( 'com.google.android.gms.maps.model.LatLngBounds') liteMode = JavaMethod('boolean') mapToolbarEnabled = JavaMethod('boolean') mapType = JavaMethod('int') maxZoomPreference = JavaMethod('float') minZoomPreference = JavaMethod('float') rotateGesturesEnabled = JavaMethod('boolean') scrollGesturesEnabled = JavaMethod('boolean') tiltGesturesEnabled = JavaMethod('boolean') zoomControlsEnabled = JavaMethod('boolean') zoomGesturesEnabled = JavaMethod('boolean')
class MapItemOptionsBase(JavaBridgeObject): visible = JavaMethod('boolean') zindex = JavaMethod('float')
class Marker(MapItemBase): __nativeclass__ = set_default('com.google.android.gms.maps.model.Marker') setAlpha = JavaMethod('float') setAnchor = JavaMethod('float', 'float') setDraggable = JavaMethod('boolean') setFlat = JavaMethod('boolean') setIcon = JavaMethod('com.google.android.gms.maps.model.BitMapDescriptor') setPosition = JavaMethod('com.google.android.gms.maps.model.LatLng') setRotation = JavaMethod('float') setSnippet = JavaMethod('java.lang.String') setTitle = JavaMethod('java.lang.String') showInfoWindow = JavaMethod() hideInfoWindow = JavaMethod()