Example usage for android.view.accessibility CaptioningManager getFontScale

List of usage examples for android.view.accessibility CaptioningManager getFontScale

Introduction

In this page you can find the example usage for android.view.accessibility CaptioningManager getFontScale.

Prototype

public final float getFontScale() 

Source Link

Usage

From source file:com.example.javier.MaterialDesignApp.PlayerActivity.java

@TargetApi(19)
private float getUserCaptionFontScaleV19() {
    CaptioningManager captioningManager = (CaptioningManager) getSystemService(Context.CAPTIONING_SERVICE);
    return captioningManager.getFontScale();
}