telescope

A simple tool to allow easy bug report capturing within your app.

  • 所有者: mattprecious/telescope
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Telescope

A simple tool to allow easy bug report capturing within your app.

Usage

Place a TelescopeLayout at the root of your hierarchy.

Add a callback to the view group with setLens(Lens). Telescope provides two default
implementations:

  • EmailLens: Compose an email with the provided addresses and subject (optional).
  • EmailDeviceInfoLens: Enhances EmailLens by pre-populating the email body with app and device
    info

Screenshots will be stored on the external storage in your app's private directory. To have
Telescope clean up the screenshots folder, call TelescopeLayout.cleanUp(Context). Ideally, this
would be called in the onDestroy() method of your Activity or Fragment.

If you are using the Gradle-based build system, you can wrap this view group around your activity
layouts only in the debug builds.

See the u2020 project for a more advanced example.

Permissions

Pre-KitKat, WRITE_EXTERNAL_STORAGE is required for saving screenshots. Screenshots can be disabled
using the configuration options below.

Configuration

The view group can be configured as follows:

  • Set the number of fingers to trigger with app:telescope_pointerCount / setPointerCount(int)
  • Set the progress color with app:telescope_progressColor / setProgressColor(int)
  • Change the screenshot method with app:telescope_screenshotMode /
    setScreenshotMode(ScreenshotMode)
  • Screenshot children only with app:telescope_screenshotChildrenOnly /
    setScreenshotChildrenOnly(boolean)
  • Set the screenshot target withsetScreenshotTarget(View)
  • Disable vibration with app:telescope_vibrate / setVibrate(boolean)

Download

Gradle:

compile 'com.mattprecious.telescope:telescope:2.2.0'

or Maven:

<dependency>
  <groupId>com.mattprecious.telescope</groupId>
  <artifactId>telescope</artifactId>
  <version>2.2.0</version>
  <type>apklib</type>
</dependency>

License

Copyright 2014 Matthew Precious

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

主要指标

概览
名称与所有者mattprecious/telescope
主编程语言Java
编程语言Java (语言数: 1)
平台
许可证Apache License 2.0
所有者活动
创建于2014-04-30 16:08:35
推送于2025-05-28 22:08:01
最后一次提交
发布数11
最新版本名称2.4.0 (发布于 2024-11-11 18:15:28)
第一版名称1.0.0 (发布于 )
用户参与
星数1.2k
关注者数36
派生数116
提交数232
已启用问题?
问题数26
打开的问题数8
拉请求数120
打开的拉请求数5
关闭的拉请求数15
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?