Formatter.FormatShortFileSize(Context, Int64) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
和一樣 #formatFileSize
,但嘗試產生較短的數字(顯示較少的有效位數)。
[Android.Runtime.Register("formatShortFileSize", "(Landroid/content/Context;J)Ljava/lang/String;", "")]
public static string? FormatShortFileSize(Android.Content.Context? context, long sizeBytes);
[<Android.Runtime.Register("formatShortFileSize", "(Landroid/content/Context;J)Ljava/lang/String;", "")>]
static member FormatShortFileSize : Android.Content.Context * int64 -> string
參數
- context
- Context
- sizeBytes
- Int64
傳回
- 屬性
備註
和一樣 #formatFileSize
,但嘗試產生較短的數字(顯示較少的有效位數)。
的 android.text.format.Formatter.formatShortFileSize(android.content.Context, long)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。