android.app.Notification#STREAM_DEFAULT源码实例Demo

下面列出了android.app.Notification#STREAM_DEFAULT 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: CodenameOne   文件: NotificationCompat.java
/**
 * Set the sound to play.  It will play on the default stream.
 */
public Builder setSound(Uri sound) {
    mNotification.sound = sound;
    mNotification.audioStreamType = Notification.STREAM_DEFAULT;
    return this;
}
 
源代码2 项目: android-recipes-app   文件: NotificationCompat.java
/**
 * Set the sound to play.  It will play on the default stream.
 */
public Builder setSound(Uri sound) {
    mNotification.sound = sound;
    mNotification.audioStreamType = Notification.STREAM_DEFAULT;
    return this;
}
 
源代码3 项目: V.FlyoutTest   文件: NotificationCompat.java
/**
 * Set the sound to play.  It will play on the default stream.
 */
public Builder setSound(Uri sound) {
    mNotification.sound = sound;
    mNotification.audioStreamType = Notification.STREAM_DEFAULT;
    return this;
}
 
源代码4 项目: guideshow   文件: NotificationCompat.java
/**
 * Set the sound to play.  It will play on the default stream.
 */
public Builder setSound(Uri sound) {
    mNotification.sound = sound;
    mNotification.audioStreamType = Notification.STREAM_DEFAULT;
    return this;
}
 
源代码5 项目: CodenameOne   文件: NotificationCompat.java
/**
 * Constructor.
 *
 * Automatically sets the when field to {@link System#currentTimeMillis()
 * System.currentTimeMillis()} and the audio stream to the
 * {@link Notification#STREAM_DEFAULT}.
 *
 * @param context A {@link Context} that will be used to construct the
 *      RemoteViews. The Context will not be held past the lifetime of this
 *      Builder object.
 */
public Builder(Context context) {
    mContext = context;

    // Set defaults to match the defaults of a Notification
    mNotification.when = System.currentTimeMillis();
    mNotification.audioStreamType = Notification.STREAM_DEFAULT;
    mPriority = PRIORITY_DEFAULT;
}
 
源代码6 项目: adt-leanback-support   文件: NotificationCompat.java
/**
 * Constructor.
 *
 * Automatically sets the when field to {@link System#currentTimeMillis()
 * System.currentTimeMillis()} and the audio stream to the
 * {@link Notification#STREAM_DEFAULT}.
 *
 * @param context A {@link Context} that will be used to construct the
 *      RemoteViews. The Context will not be held past the lifetime of this
 *      Builder object.
 */
public Builder(Context context) {
    mContext = context;

    // Set defaults to match the defaults of a Notification
    mNotification.when = System.currentTimeMillis();
    mNotification.audioStreamType = Notification.STREAM_DEFAULT;
    mPriority = PRIORITY_DEFAULT;
    mPeople = new ArrayList<String>();
}
 
源代码7 项目: android-recipes-app   文件: NotificationCompat.java
/**
 * Constructor.
 *
 * Automatically sets the when field to {@link System#currentTimeMillis()
 * System.currentTimeMillis()} and the audio stream to the
 * {@link Notification#STREAM_DEFAULT}.
 *
 * @param context A {@link Context} that will be used to construct the
 *      RemoteViews. The Context will not be held past the lifetime of this
 *      Builder object.
 */
public Builder(Context context) {
    mContext = context;

    // Set defaults to match the defaults of a Notification
    mNotification.when = System.currentTimeMillis();
    mNotification.audioStreamType = Notification.STREAM_DEFAULT;
    mPriority = PRIORITY_DEFAULT;
}
 
源代码8 项目: V.FlyoutTest   文件: NotificationCompat.java
/**
 * Constructor.
 *
 * Automatically sets the when field to {@link System#currentTimeMillis()
 * System.currentTimeMillis()} and the audio stream to the
 * {@link Notification#STREAM_DEFAULT}.
 *
 * @param context A {@link Context} that will be used to construct the
 *      RemoteViews. The Context will not be held past the lifetime of this
 *      Builder object.
 */
public Builder(Context context) {
    mContext = context;

    // Set defaults to match the defaults of a Notification
    mNotification.when = System.currentTimeMillis();
    mNotification.audioStreamType = Notification.STREAM_DEFAULT;
    mPriority = PRIORITY_DEFAULT;
}
 
源代码9 项目: guideshow   文件: NotificationCompat.java
/**
 * Constructor.
 *
 * Automatically sets the when field to {@link System#currentTimeMillis()
 * System.currentTimeMillis()} and the audio stream to the
 * {@link Notification#STREAM_DEFAULT}.
 *
 * @param context A {@link Context} that will be used to construct the
 *      RemoteViews. The Context will not be held past the lifetime of this
 *      Builder object.
 */
public Builder(Context context) {
    mContext = context;

    // Set defaults to match the defaults of a Notification
    mNotification.when = System.currentTimeMillis();
    mNotification.audioStreamType = Notification.STREAM_DEFAULT;
    mPriority = PRIORITY_DEFAULT;
}
 
源代码10 项目: adt-leanback-support   文件: NotificationCompat.java
/**
 * Set the sound to play.  It will play on the default stream.
 *
 * <p>
 * On some platforms, a notification that is noisy is more likely to be presented
 * as a heads-up notification.
 * </p>
 */
public Builder setSound(Uri sound) {
    mNotification.sound = sound;
    mNotification.audioStreamType = Notification.STREAM_DEFAULT;
    return this;
}