sortedByCompatibility

Returns a sequence that yields APK splits sorted according to their compatibility with the device.

This sort is not stable.

The most preferred APK splits will appear first. If exact device's screen density, ABI or locale doesn't appear in the splits, nearest matching split is chosen as a preferred one.

This function will call Context.getApplicationContext internally, so it's safe to pass in any Context.

The operation is intermediate and stateful.


Returns a list containing APK splits sorted according to their compatibility with the device.

This sort is not stable.

The most preferred APK splits will appear first. If exact device's screen density, ABI or locale doesn't appear in the splits, nearest matching split is chosen as a preferred one.

This function will call Context.getApplicationContext internally, so it's safe to pass in any Context.