日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSShortcutInfo

ShortcutInfo

創(chuàng)新互聯(lián)憑借專業(yè)的設(shè)計團(tuán)隊扎實的技術(shù)支持、優(yōu)質(zhì)高效的服務(wù)意識和豐厚的資源優(yōu)勢,提供專業(yè)的網(wǎng)站策劃、網(wǎng)站制作、成都網(wǎng)站建設(shè)、網(wǎng)站優(yōu)化、軟件開發(fā)、網(wǎng)站改版等服務(wù),在成都十載的網(wǎng)站建設(shè)設(shè)計經(jīng)驗,為成都近千家中小型企業(yè)策劃設(shè)計了網(wǎng)站。

java.lang.Object

|---ohos.bundle.ShortcutInfo

public class ShortcutInfo
extends Object
implements Sequenceable

提供有關(guān)快捷方式的信息,包括快捷方式 ID 和標(biāo)簽。

嵌套類摘要

從接口 ohos.utils.Sequenceable 繼承的嵌套類/接口
Sequenceable.ProducerT

字段摘要

修飾符和類型 字段 描述
static Sequenceable.ProducerShortcutInfoPRODUCER從 Parcel 創(chuàng)建一個 ShortcutInfo 實例。

構(gòu)造函數(shù)摘要

構(gòu)造函數(shù) 描述
ShortcutInfo()用于創(chuàng)建 ShortcutInfo 實例的默認(rèn)構(gòu)造函數(shù)。
ShortcutInfo(ShortcutInfo source)用于通過從現(xiàn)有參數(shù)復(fù)制參數(shù)來創(chuàng)建 ShortcutInfo 實例的構(gòu)造函數(shù)。

方法總結(jié)

修飾符和類型 方法 描述
StringgetBundleName()獲取該快捷方式所屬的應(yīng)用程序包名稱。
StringgetDisableMessage()獲取此快捷方式的禁用消息。
StringgetHostAbilityName()獲取托管此快捷方式的ability的類名。
StringgetIcon()獲取該快捷方式的圖標(biāo)路徑。
StringgetId()獲取此快捷方式的 ID。
ShortcutIntentgetIntent()獲取此快捷方式的 ShortcutIntent 對象。
ListShortcutIntentgetIntents()獲取此快捷方式中包含的所有 ShortcutIntent 對象。
StringgetLabel()獲取該快捷方式的標(biāo)簽。
booleanisEnabled()檢查是否啟用了此快捷方式。
booleanisHomeShortcut()檢查此快捷方式是否是主屏幕快捷方式。
booleanisStatic()檢查此快捷方式是否是靜態(tài)的。
booleanmarshalling(Parcel out)將此 Sequenceable 對象編組為 Parcel。
voidsetBundleName(String bundleName)設(shè)置此快捷方式的 bundleName。
voidsetDisableMessage(String disableMessage)設(shè)置此快捷方式的禁用消息。
voidsetHostAbilityName(String hostAbility)設(shè)置托管此快捷方式的ability的類名。
voidsetIcon(String icon)設(shè)置此快捷方式的圖標(biāo)路徑。
voidsetId(String id)設(shè)置此快捷方式的 ID。
voidsetIntent(ShortcutIntent intent)設(shè)置此快捷方式的 ShortcutIntent。
voidsetIntents(ListShortcutIntent intents)為此快捷方式設(shè)置多個intent。
voidsetLabel(String label)設(shè)置此快捷方式的標(biāo)簽。
booleanunmarshalling(Parcel in)從 Parcel 中解組此 Sequenceable 對象。
從類 java.lang.Object 繼承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
從接口 ohos.utils.Sequenceable 繼承的方法
hasFileDescriptor

字段詳細(xì)信息

PRODUCER

public static final Sequenceable.ProducerShortcutInfo PRODUCER

從 Parcel 創(chuàng)建一個 ShortcutInfo 實例。

構(gòu)造函數(shù)詳細(xì)信息

ShortcutInfo

public ShortcutInfo()

用于創(chuàng)建 ShortcutInfo 實例的默認(rèn)構(gòu)造函數(shù)。

ShortcutInfo

public ShortcutInfo(ShortcutInfo source)

用于通過從現(xiàn)有參數(shù)復(fù)制參數(shù)來創(chuàng)建 ShortcutInfo 實例的構(gòu)造函數(shù)。

參數(shù):

參數(shù)名稱 參數(shù)描述
source指示 ShortcutInfo 對象。

方法詳情

setId

public void setId(String id)

設(shè)置此快捷方式的 ID。 此方法對靜態(tài)快捷方式無效。

參數(shù):

參數(shù)名稱 參數(shù)描述
id表示要設(shè)置的快捷方式ID。

getId

public String getId()

獲取此快捷方式的 ID。

快捷方式 ID 唯一標(biāo)識快捷方式。

返回:

返回快捷方式 ID。

setBundleName

public void setBundleName(String bundleName)

設(shè)置此快捷方式的 bundleName。 此方法對靜態(tài)快捷方式無效。

參數(shù):

參數(shù)名稱 參數(shù)描述
bundleName指示此快捷方式所屬的應(yīng)用程序的捆綁包名稱。

getBundleName

public String getBundleName()

獲取該快捷方式所屬的應(yīng)用程序包名稱。

返回:

返回應(yīng)用程序的包名稱。

setHostAbilityName

public void setHostAbilityName(String hostAbility)

設(shè)置托管此快捷方式的ability的類名。 此方法對靜態(tài)快捷方式無效。

參數(shù):

參數(shù)名稱 參數(shù)描述
hostAbility指示創(chuàng)建此快捷方式的ability的類名。

getHostAbilityName

public String getHostAbilityName()

獲取托管此快捷方式的ability的類名。

返回:

返回此快捷方式的宿主ability的類名。

setIcon

public void setIcon(String icon)

設(shè)置此快捷方式的圖標(biāo)路徑。 此方法對靜態(tài)快捷方式無效。

參數(shù):

參數(shù)名稱 參數(shù)描述
icon表示快捷方式圖標(biāo)的存放路徑。

getIcon

public String getIcon()

獲取該快捷方式的圖標(biāo)路徑。

返回:

返回存儲快捷方式圖標(biāo)的路徑。

setLabel

public void setLabel(String label)

設(shè)置此快捷方式的標(biāo)簽。 此方法對靜態(tài)快捷方式無效。

快捷方式的標(biāo)簽是用戶可見的快捷方式信息。

參數(shù):

參數(shù)名稱 參數(shù)描述
label指示要設(shè)置的快捷方式標(biāo)簽。

getLabel

public String getLabel()

獲取該快捷方式的標(biāo)簽。

返回:

返回快捷方式標(biāo)簽。

setDisableMessage

public void setDisableMessage(String disableMessage)

設(shè)置此快捷方式的禁用消息。 此方法對靜態(tài)快捷方式無效。

參數(shù):

參數(shù)名稱 參數(shù)描述
disableMessage指示要設(shè)置的禁用消息。

getDisableMessage

public String getDisableMessage()

獲取此快捷方式的禁用消息。

返回:

返回快捷方式禁用消息。

setIntents

public void setIntents(ListShortcutIntent intents)

為此快捷方式設(shè)置多個intent。 此方法對靜態(tài)快捷方式無效。

如果為一個快捷方式設(shè)置了多個intent,則所有這些 ShortcutIntent 對象中指定的ability將在快捷方式啟動時依次啟動。

參數(shù):

參數(shù)名稱 參數(shù)描述
intents指示要設(shè)置的 ShortcutIntent 對象的列表。

setIntent

public void setIntent(ShortcutIntent intent)

設(shè)置此快捷方式的 ShortcutIntent。 如果多次調(diào)用此方法,則最近一次調(diào)用中設(shè)置的 ShortcutIntent 將覆蓋之前的。 此方法對靜態(tài)快捷方式無效。

參數(shù):

參數(shù)名稱 參數(shù)描述
intent指示要設(shè)置的 ShortcutIntent 對象。

getIntents

public ListShortcutIntent getIntents()

獲取此快捷方式中包含的所有 ShortcutIntent 對象。

ohos.bundle.ShortcutIntent 對象用于導(dǎo)航到快捷方式的目標(biāo)ability。

返回:

返回此快捷方式中所有 ohos.bundle.ShortcutIntent 對象的列表。

getIntent

public ShortcutIntent getIntent()

獲取此快捷方式的 ShortcutIntent 對象。 如果有多個intent,則返回 ShortcutIntent 列表中的最后一個。

返回:

返回此快捷方式的 ShortcutIntent 列表中的最后一個對象。

isStatic

public boolean isStatic()

檢查此快捷方式是否是靜態(tài)的。

返回:

如果此快捷方式是靜態(tài)的,則返回 true; 否則返回 false。

isHomeShortcut

public boolean isHomeShortcut()

檢查此快捷方式是否是主屏幕快捷方式。

返回:

如果此快捷方式是主屏幕快捷方式,則返回 true; 否則返回 false。

isEnabled

public boolean isEnabled()

檢查是否啟用了此快捷方式。

返回:

如果啟用此快捷方式,則返回 true; 否則返回 false。

marshalling

public boolean marshalling(Parcel out)

從接口復(fù)制的描述:Sequenceable

將此 Sequenceable 對象編組為 Parcel。

指定者:

接口 Sequenceable 中的編組

參數(shù):

參數(shù)名稱 參數(shù)描述
out指示將 Sequenceable 對象編組到的 Parcel 對象。

返回:

如果編組成功,則返回 true; 否則返回 false。

unmarshalling

public boolean unmarshalling(Parcel in)

從接口復(fù)制的描述:Sequenceable

從 Parcel 中解組此 Sequenceable 對象。

指定者:

在接口 Sequenceable 中解組

參數(shù):

參數(shù)名稱 參數(shù)描述
in指示已將 Sequenceable 對象編組到的 Parcel 對象。

返回:

如果解組成功,則返回 true; 否則返回 false。


網(wǎng)頁題目:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSShortcutInfo
網(wǎng)站鏈接:http://www.dlmjj.cn/article/dphedei.html