Example usage for android.view.accessibility CaptioningManager getUserStyle

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

Introduction

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

Prototype

@NonNull
public CaptionStyle getUserStyle() 

Source Link

Usage

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

@TargetApi(19)
private CaptionStyleCompat getUserCaptionStyleV19() {
    CaptioningManager captioningManager = (CaptioningManager) getSystemService(Context.CAPTIONING_SERVICE);
    return CaptionStyleCompat.createFromCaptionStyle(captioningManager.getUserStyle());
}