Error when calling another class

2021.12.08 15:29 JonnieSingh Error when calling another class

The code displayed below is from my MainActivity class where I call the class DrawGraphic.

val element = DrawGraphic(context = this, rect = detectedObjects.boundingBox, text = detectedObjects.labels.firstOrNull()?. text ?: "Undefined") 
However, my problem is that the this in context = this is underlined in red, saying that it is a Type mismatch, and whats required is Context. Why am I getting this error? it seems to be the only impediment to the completion of this project.
I should also include my DrawGraphic class and constructor for reference:
class DrawGraphic(context: Context, imageAnalyzer: var rect: Rect, var text: String): View(context) { lateinit var boxColor: Paint lateinit var textColor: Paint init { init() } private fun init() { boxColor = Paint() boxColor.color = Color.WHITE boxColor.strokeWidth = 10f boxColor.style = Paint.Style.STROKE textColor = Paint() textColor.color = Color.WHITE textColor.textSize = 50f textColor.style = Paint.Style.FILL } override fun onDraw(canvas: Canvas?) { super.onDraw(canvas) canvas?.drawText(text, rect.centerX().toFloat(), rect.centerY().toFloat(), textColor) canvas?.drawRect(rect.left.toFloat(), rect.top.toFloat(), rect.right.toFloat(), rect.bottom.toFloat(), boxColor) } } 
Any other information I may not have shown will be provided upon request.
submitted by JonnieSingh to Kotlin [link] [comments]


2021.12.08 15:29 Cash-L I made an ND themed song compilation

I made an ND themed song compilation submitted by Cash-L to LearningDisabilities [link] [comments]


2021.12.08 15:29 lynngolf7 Do I buy this for $119

Do I buy this for $119 submitted by lynngolf7 to tequila [link] [comments]


2021.12.08 15:29 MakeMeRichIDC Give it back to us!

Give it back to us! submitted by MakeMeRichIDC to OkBubbyRetard [link] [comments]


2021.12.08 15:29 mnvk84 1961 Topps #344 Sandy Koufax SGC 4.5 VG-EX+ Los Angeles Dodgers

1961 Topps #344 Sandy Koufax SGC 4.5 VG-EX+ Los Angeles Dodgers submitted by mnvk84 to Sportscardlistings [link] [comments]


2021.12.08 15:29 CulturalHunter Cecity

My hope was blind and led by your hand across the maze where unmindful eyes met their match.
Tripping up on words turned twines, barefoot along the thorny path As the cursed schemes, gave way to fever dreams that faded by dawn, slipping through a frozen iron grasp.
Clinging to the mind's designs, like a Judas kiss, A rose tinted smile. Facing up, towards the verge of the abyss. Limbs and empty space, Motion, grace and bliss.
submitted by CulturalHunter to poetry_critics [link] [comments]


2021.12.08 15:29 FelineHerdsCats Caregiver requirements for transplant patients

I'm a potential live donor for my signifigant other. We are long-distance, and he is somewhat socially isolated. Enough so he doesn't have anyone to serve as caregiver. The transplant program where he planned to apply requires a caregiver to be present at all preliminary doctor appointments and nonstop for 3+ weeks after surgery. Is this standard? I would serve as caregiver if I could, but knowing post-donor restrictions, that's not feasible. Does not having an available, dedicated caregiver doom ESRD patients to dialysis?
submitted by FelineHerdsCats to transplant [link] [comments]


2021.12.08 15:29 Tech-Tao Erotic almonds... they're coming...

Erotic almonds... they're coming... submitted by Tech-Tao to memes [link] [comments]


2021.12.08 15:29 SpaceballsTheCritic Looking for Proof of USEFUL Work Projects

Very excited by this concept as the next evolution of web 3.0, decentralized everything, and cryptocurrency.
What other projects are out there?
My current list:
Helium – Building a network for Low Power devices and paying in crypto for Proof of Coverage
MXC – Same thing as helium with a different business model (agree it seems a little shady but time will tell).
Weather XM – Deploy a weather station and receive crypto for providing weather data.
Flux – Supports traditional mining, staking and would seem to be the road to pay-go data processing and storage.
submitted by SpaceballsTheCritic to CryptoCurrency [link] [comments]


2021.12.08 15:29 Tedd_Scott Hire Me for Java, Python, C++, SQL, HTML/CSS/JS programming, Calculus, Linear Algebra, and Discrete Math as well as Essays, Economics, and Accounting tasks. An A is guaranteed.

Hire Me for Java, Python, C++, SQL, HTML/CSS/JS programming, Calculus, Linear Algebra, and Discrete Math as well as Essays, Economics, and Accounting tasks. An A is guaranteed. submitted by Tedd_Scott to domyhomeworkformee [link] [comments]


2021.12.08 15:29 Twitch-Ilagoass A little wish for this christmas

Dear father christmas of the war, i want reindeer and a sled on the map breakaway and Santa's skin too would be nice...
Be able to turn off the screen rotation when flying a jet and be able to move freely when using the rear camera.
Being able to change teams and block access to vehicles so no one stole them. I know it's not important, that's why I'm stuck with my Santa skin.
With love.
Lagoas.
submitted by Twitch-Ilagoass to battlefield2042 [link] [comments]


2021.12.08 15:29 Quick-Spare5039 chillos peri bites pari pari bites easy peri bites recipe cheesy peri bites

chillos peri bites pari pari bites easy peri bites recipe cheesy peri bites submitted by Quick-Spare5039 to PakistaniFood [link] [comments]


2021.12.08 15:29 HaydenScramble They think they’re funny.

They think they’re funny. submitted by HaydenScramble to halo [link] [comments]


2021.12.08 15:29 jookco Kerrith “Kez” Black Death - Dead - Obituary News : It is with great sadness that we share the news that Kerrith "Kez" Black recently passed away at the age of 32. Click link to read full story.

submitted by jookco to DeathObituaries [link] [comments]


2021.12.08 15:29 marbamag Wake Co. Pistol Purchase Permit Wait Time?

I was wondering if anyone has gotten a pistol purchase permit from the Sheriffs office recently, and if so how long was the turnaround? I applied the other day and just wanted to know what to expect, the last posts I could find in this sub were from a year ago when we were in a different stage of the pandemic. Thanks!
submitted by marbamag to raleigh [link] [comments]


2021.12.08 15:29 kaiserfiume MSM news from the future: "GME shares spike +12869% today amid Guybrush Threepwood announced he might be back to the Monkey Island. Shorts covered in January 2021, SI% still at 10.48%."

MSM news from the future: submitted by kaiserfiume to Superstonk [link] [comments]


2021.12.08 15:29 markos_c [For Hire] Multimedia Artist

Offers:
Graphic design Logo design Video editing Web design Shirt design Poster, Banner, and Magazine Cover design Branding and Product Label
Portfolio:
https://www.behance.net/markcordovero
submitted by markos_c to forhire [link] [comments]


2021.12.08 15:29 Eyeris100 I'm a beginner in Identity V...What should I be doing to progress?

In short, I recently started playing the game and I've been playing a lot of quick matches, but I'm unsure what else I should be doing. Is there certain ways I can grind rewards? Is there a story I should be playing or something?
submitted by Eyeris100 to IdentityV [link] [comments]


2021.12.08 15:29 SuperHotUKDeals Logitech G815 LIGHTSYNC RGB Wired Mechanical Gaming Keyboard with low profile GL-Tactile key switches - £99.99 @ Amazon

The description of this deal was not provided by this subreddit and its contributors.
£99.99 - Amazon
Originally posted it a couple of weeks ago for £97.99 so not the best deal, but is still worth sharing. **Cheapest currently.
**

submitted by SuperHotUKDeals to HotUKGamingDeals [link] [comments]


2021.12.08 15:29 squawkalley 23-year old Skilyr Hicks dead, AGT contestant might have Oded, cops suspect

23-year old Skilyr Hicks dead, AGT contestant might have Oded, cops suspect submitted by squawkalley to dowjonesbets [link] [comments]


2021.12.08 15:29 GuitarDad1989 THEY'RE TALKING ABOUT NICKY

https://youtu.be/7uyG_36EWbQ
submitted by GuitarDad1989 to KCRoyals [link] [comments]


2021.12.08 15:29 RageManCrypto invest in polylauncher $Angel.

invest in polylauncher $Angel. submitted by RageManCrypto to memecoinmoonshots [link] [comments]


2021.12.08 15:29 jookco Elder Dave Courchene Death - Dead - Obituary News : 🧵"It is with great sadness that the family of Nitamabit/Nii Gaani Aki Inini (Elder Dave Courchene) Click link to read full story.

submitted by jookco to DeathObituaries [link] [comments]


2021.12.08 15:29 Anachronator Universal Fingering Charts (3-row, 31-button Diatonic) [explanation in comments]

Universal Fingering Charts (3-row, 31-button Diatonic) [explanation in comments] submitted by Anachronator to Accordion [link] [comments]


2021.12.08 15:29 claudiecb [OC] Sleeping Red Panda pattern!

submitted by claudiecb to AdorableArt [link] [comments]


http://barbershop-ali.ru