package Ġcom . mapbox . navigation . core . internal Ċ Ċ import Ġcom . mapbox . common . Tile Store Ċ import Ġcom . mapbox . navigation . base . options . Predict ive Cache Location Options Ċ import Ġcom . mapbox . navigation . navigator . internal . Map box Native Navigator Impl Ċ import Ġcom . mapbox . navigator . Predict ive Cache Controller Ċ Ċ object ĠPredict ive Cache Ġ{ ĊĊĠĠĠ Ġprivate Ġvar Ġcached Navigation Predict ive Cache Controllers Ġ= ĊĠĠĠĠĠĠĠ Ġmutable ListOf < Predict ive Cache Controller >() ĊĠĠĠ Ġprivate Ġvar Ġcached Maps Predict ive Cache Controllers Ġ= ĊĠĠĠĠĠĠĠ Ġmutable Map Of < String , ĠPredict ive Cache Controller >() ĊĊĠĠĠ Ġfun Ġcreate Navigation Controller ( ĊĠĠĠĠĠĠĠ Ġpredict ive Cache Location Options : ĠPredict ive Cache Location Options ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpredict ive Cache Controller Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMap box Native Navigator Impl . create Navigation Predict ive Cache Controller ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġpredict ive Cache Location Options ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġcached Navigation Predict ive Cache Controllers . add ( predict ive Cache Controller ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcreate Maps Controller ( ĊĠĠĠĠĠĠĠ Ġtile Store : ĠTile Store , ĊĠĠĠĠĠĠĠ Ġtile Variant : ĠString , ĊĠĠĠĠĠĠĠ Ġpredict ive Cache Location Options : ĠPredict ive Cache Location Options Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠPredict ive Cache Location Options . Builder (). build () ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpredict ive Cache Controller Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMap box Native Navigator Impl . create Maps Predict ive Cache Controller ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġtile Store , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġtile Variant , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġpredict ive Cache Location Options ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġcached Maps Predict ive Cache Controllers [ tile Variant ] Ġ= Ġpredict ive Cache Controller ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcurrent Maps Predict ive Cache Controllers (): ĠList < String > Ġ= ĊĠĠĠĠĠĠĠ Ġcached Maps Predict ive Cache Controllers . keys . toList () ĊĊĠĠĠ Ġfun Ġremove Maps Controller ( ĊĠĠĠĠĠĠĠ Ġtile Variant : ĠString , ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠĠĠ Ġcached Maps Predict ive Cache Controllers . remove ( tile Variant ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġclean () Ġ{ ĊĠĠĠĠĠĠĠ Ġcached Navigation Predict ive Cache Controllers Ġ= Ġmutable ListOf () ĊĠĠĠĠĠĠĠ Ġcached Maps Predict ive Cache Controllers Ġ= Ġmutable Map Of () ĊĠĠĠ Ġ} Ċ } Ċ