Socket
Book a DemoInstallSign in
Socket

@smallstoneapps/sliding-text-layer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smallstoneapps/sliding-text-layer

A Layer for your Pebble apps that lets you vertically scroll a line of text.

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Sliding Text Layer

A Layer for your Pebble apps that lets you vertically scroll a line of text.

Installation

You must be using Pebble SDK 3.12 or newer to use this library.

To install the package to your app, use the pebble tool:

pebble package install @smallstoneapps/sliding-text-layer

Usage

  • Include the header file in your code.

    #include <@smallstoneapps/sliding-text-layer/sliding-text-layer.h>
    
  • Create a new SlidingTextLayer.

    SlidingTextLayer* stl = sliding_text_layer_create(GRect(0, 60, 144, 24));
    
  • Set the initial text for the layer.

    sliding_text_layer_set_text(stl, "Line 1");
    
  • When you want to animate to the next line of text.

    sliding_text_layer_set_next_text(stl, "Line 2");
    sliding_text_layer_animate_down(stl);
    

Keywords

pebble-package

FAQs

Package last updated on 08 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.