Skip to content

expected member declaration  #48

@hemo7f12

Description

@hemo7f12

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions