public class TinyDancerBuilder
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
TinyDancerBuilder() |
| Modifier and Type | Method and Description |
|---|---|
TinyDancerBuilder |
addFrameDataCallback(FrameDataCallback callback)
this adds a frame callback that the library will invoke on the
each time the choreographer calls us, we will send you the frame times
and number of dropped frames.
|
protected static void |
hide(android.content.Context context)
stops the frame callback and foreground listener
nulls out static variables
called from FPSLibrary in a static context
|
TinyDancerBuilder |
redFlagPercentage(float percentage)
set red flag percent, default is 20%
|
void |
show(android.content.Context context)
show fps meter, this regisers the frame callback that
collects the fps info and pushes it to the ui
|
TinyDancerBuilder |
startingGravity(int gravity)
starting gravity of fps meter default is Gravity.TOP | Gravity.START;
|
TinyDancerBuilder |
startingXPosition(int xPosition)
starting x position of fps meter default is 200px
|
TinyDancerBuilder |
startingYPosition(int yPosition)
starting y positon of fps meter default is 600px
|
TinyDancerBuilder |
yellowFlagPercentage(float percentage)
set red flag percent, default is 5%
|
protected static void hide(android.content.Context context)
context - public void show(android.content.Context context)
context - public TinyDancerBuilder addFrameDataCallback(FrameDataCallback callback)
callback - public TinyDancerBuilder redFlagPercentage(float percentage)
percentage - public TinyDancerBuilder yellowFlagPercentage(float percentage)
percentage - public TinyDancerBuilder startingXPosition(int xPosition)
xPosition - public TinyDancerBuilder startingYPosition(int yPosition)
yPosition - public TinyDancerBuilder startingGravity(int gravity)
gravity -