Differences between ShortcutInfo and ShortcutInfoCompat?

386 Views Asked by At

What is the real difference of using one or the other, to create a link?

I would like to understand if it depends only on the version is Android or not?

1

There are 1 best solutions below

0
On

Generally, the Compat suffix signifies the backward compatibility of that class. As new features are added in new APIs, a gap is created whereby the older android versions can't have access to those features. This is where Compat classes come in, to make sure that any class that extends them can provide that compatibility even when run in an older device that uses an older API.