Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

Started by kakula Dec 28 2018 03:54 PM

1 reply to this topic
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Enthusiast

  • 79 posts
  • Corona SDK



When i use CaptureScreen Function, it does not capture native display objects like mapview


i was expecting this, but is there a way to make it do so


if you capture the screen with phone's buttons it will work ... but with this function it does not!


how can i make it work


i'm trying to do this because saving offline maps does not work ... so as a final resort i'm trying to capture an image from mapview to show it when user is offline ... any help please




[TOPIC: post.html]

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,154 posts
  • Corona SDK

Corona's display saving functions only work with objects that are part of the Corona display OpenGL canvas. All of the native.* API's sit on top of that canvas, but are not a part of it. This is not possible with Corona.


Now you might be able to use Corona Native to do this. It doesn't look like it's complex on Android according to this stackoverflow  post: https://stackoverflow.com/questions/2661536/how-to-programmatically-take-a-screenshot


I would assume it's pretty straightforward on iOS as well.




Also tagged with one or more of these keywords: capturescreen