Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expected member declaration #48

Open
hemo7f12 opened this issue May 16, 2020 · 0 comments
Open

expected member declaration #48

hemo7f12 opened this issue May 16, 2020 · 0 comments

Comments

@hemo7f12
Copy link

Hello,
I'm trying to use the library to take a screenshot but there is issue with the code here

    Instacapture.capture(this, object : SimpleScreenCapturingListener() {
        override fun onCaptureComplete(bitmap: Bitmap) {
            //Your code here..

        }
    })

// or in Rx way
    Instacapture.captureRx(this).subscribe { bitmap ->
        //Your code here..
    }

it says "expected member declaration " in these two lines ( Instacapture.captureRx(this).subscribe ) and ( Instacapture.capture(this, object : SimpleScreenCapturingListener() {
)

and for (bitmap )it says unresolved reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant