Language

Notification.WearableExtender.SetCustomSizePreset(WearableSizePreset) メソッド

定義

Notification.WearableExtender で見つかった使用可能なプリセットから、この通知の表示用のカスタム サイズ プリセットを設定します。例:

[Android.Runtime.Register("setCustomSizePreset", "(I)Landroid/app/Notification$WearableExtender;", "")]
public Android.App.Notification.WearableExtender? SetCustomSizePreset(Android.App.WearableSizePreset sizePreset);
[<Android.Runtime.Register("setCustomSizePreset", "(I)Landroid/app/Notification$WearableExtender;", "")>]
member this.SetCustomSizePreset : Android.App.WearableSizePreset -> Android.App.Notification.WearableExtender

パラメーター

sizePreset
WearableSizePreset

int

返品

この Android.App.Notification.WearableExtender インスタンス。呼び出しをチェーンできます。

属性

注釈

Notification.WearableExtender で使用できるプリセット (例: SIZE_LARGE) から、この通知の表示用のカスタム サイズ プリセットを設定します。 一部のカスタム サイズ プリセットは、setDisplayIntent(PendingIntent) を使用して作成されたカスタム表示通知にのみ適用されます。 該当するプリセットのドキュメントを確認してください。 setCustomContentHeight(int) と getCustomSizePreset() も参照してください。

android.app.Notification.WearableExtender.setCustomSizePresetの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象