Anonymous

Not logged in

  • British English
  • Log in
GiderosMobile

Last 8 Pages Viewed: Application:setFps » Gaming:loadAchievements » Gaming:autoMatch » B2.Contact » Os » Application:setFullScreen » Made With Gideros » Mediamanager:takeScreenshot

Mediamanager:takeScreenshot

From GiderosMobile

Namespaces

  • Page
  • Discussion

More

  • More
  • Languages

Page actions

  • Read
  • View source
  • History

Available since: Gideros 2016.1
Class: Media

Description

Captures a screenshot of the app.

(string) = mediamanager:takeScreenshot()
ANDROID SDK 29+ HAS SOME BREAKING CHANGES, THIS FUNCTION WILL NOT WORK AS EXPECTED :-(

Return values

Returns (string) path to the screenshot

Example

require "media"

-- take screenshot (no permission needed)
mediamanager:takeScreenshot()



  • Media
  • Media.new
  • Media Plugin
  • Mediamanager:deleteFile
  • Mediamanager:getFile
  • Mediamanager:getPicture
  • Mediamanager:isCameraAvailable
  • Mediamanager:playVideo
  • Mediamanager:postPicture
  • Mediamanager:saveFile
  • Mediamanager:takePicture
  • Mediamanager:takeScreenshot
  • X Media:copy
  • X Media:crop
  • X Media:drawFill
  • X Media:drawImage
  • X Media:drawLine
  • X Media:drawText
  • X Media:flipHorizontal
  • X Media:flipVertical
  • X Media:floodFill
  • X Media:getHeight
  • X Media:getPath
  • X Media:getPixel
  • X Media:getRotation
  • X Media:getWidth
  • X Media:resize
  • X Media:resizeHeight
  • X Media:resizeWidth
  • X Media:resizeWidth(newWidth, fixed)
  • X Media:save
  • X Media:setPixel
  • X Media:setRotation
  • X Media:trim
  • Event.MEDIA RECEIVE
  • Event.MEDIA CANCEL
  • Event.VIDEO COMPLETE



  • Main Page
  • Lua API
  • Main API
  • Plugins
Retrieved from ‘https://wiki.gideros.rocks/index.php?title=Mediamanager:takeScreenshot&oldid=24130’
Category:
  • Media

Navigation

  • Main page
  • Recent changes
  • Random page
  • Help

Categories

► Lua API
► Main API
► Plugins

Wiki tools

Wiki tools

  • Special pages

Page tools

Page tools

    Userpage tools

      More

      • What links here
      • Related changes
      • Printable version
      • Permanent link
      • Page information
      • Page logs

      Categories

      Categories

      • Media
      Powered by MediaWiki
      • This page was last modified on 21 December 2024, at 03:30.
      • Privacy policy
      • About GiderosMobile
      • Disclaimers