Example usage for android.telecom TelecomManager PRESENTATION_PAYPHONE

List of usage examples for android.telecom TelecomManager PRESENTATION_PAYPHONE

Introduction

In this page you can find the example usage for android.telecom TelecomManager PRESENTATION_PAYPHONE.

Prototype

int PRESENTATION_PAYPHONE

To view the source code for android.telecom TelecomManager PRESENTATION_PAYPHONE.

Click Source Link

Document

Indicates that the address or number of a call belongs to a pay phone.

Usage

From source file:com.android.incallui.ContactInfoCache.java

/**
 * Gets name strings based on some special presentation modes.
 */// w  w w .  j  a va 2  s .c o  m
private static String getPresentationString(Context context, int presentation) {
    String name = context.getString(R.string.unknown);
    if (presentation == TelecomManager.PRESENTATION_RESTRICTED) {
        name = context.getString(R.string.private_num);
    } else if (presentation == TelecomManager.PRESENTATION_PAYPHONE) {
        name = context.getString(R.string.payphone);
    }
    return name;
}